From: Junio C Hamano Date: Tue, 20 Aug 2019 05:50:24 GMT Subject: Re: Fully peel tags via for-each-ref? Message-ID: In-Reply-To: Bryan Turner writes: > Is there any way, with "git for-each-ref", to output the "fully" > peeled SHA of a tag's ultimate target, regardless of how many layers > must be traversed? I do not think I wrote it to allow different degree of peeling, not because I wanted to explicitly forbid a use case for tags that tag another tag, but simply because I didn't think of anybody using it and didn't see need to support such tags. If %(*) does not peel fully (I do not recall what I did offhand), because all other things in Git (like $X~0, $X^{tree}, etc.) fully peel the outer object until they get to what they want, it may even be OK to declare it a bug and "fix" the notation to fully peel tags. I dunno.