Re: Strange annotated tag issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux