On Mon, Mar 25, 2019 at 08:19:25PM +0100, Ævar Arnfjörð Bjarmason wrote:
> > $ git tag -a mytag
> > error: refusing to make a recursive tag
> > hint: The object 'mytag' referred to by your new tag is already a tag.
> > hint:
> > hint: If you meant to create a tag of a tag, use:
> > hint:
> > hint: git tag -a -f mytag
> > hint:
> > hint: If you meant to tag the object that it points to, use:
> > hint:
> > hint: git tag -a mytag^{}
> >
> > It would be a minor annoyance to somebody who frequently makes
> > tags-of-tags, but it leaves them with an escape hatch.
>
> Let's call that something like --allow-recursive-tag (inspired by
> 'merge' --allow-unrelated-histories) so we don't confuse the desire to
> create such a tag with clobbering an existing tag (which -f is
> documented to do).
Yeah, that's probably a good idea. Now we just need somebody to write
the patch...
-Peff