Re: [PATCH v2.5 2/2] tag: prevent nested tags
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 4, 2019, 21:54 UTC
- Message-ID
- <xmqqef6he8sh.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20190404122722.GA23024@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 8 quoted lines
> but you have to take pretty specific steps to get a tag of a blob or
> tree, like:
>
> git tag mytag HEAD:path
>
> or
>
> git tag mytag HEAD^{tree}And the way to ask for commit and tag are
git tag mytag master
git tag mytag v1.0.0I do not see why only the last one should either be forbidden or automaticallly peel. Each of these four names an object of a specific type, and singling out a tag as "curious" makes the interface uneven.