Re: [PATCH 8/9] for-each-ref: add option to fully dereference tags
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 9, 2023, 01:32 UTC
- Message-ID
- <xmqq5y2b3e5p.fsf@gitster.g>
- In-Reply-To
- <xmqqfs1f3eji.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
> You have to feed it to "git cat-file tag" and parse the contents of > the tag obbject yourself to manually peel further levels of onion.
Alternatively, you can drive "git show -s" with "--format" and you probably can produce a machine parseable output.
But it does not change the argument fundamentally. The point is that "for-each-ref --format=%(*field)" that peels only the first layer would not have helped all that much, if somebody really cares about each levels of nested tags. They would have been relying on a solution to deal with the second and further layers anyway, and that solution would have been working with the first layer, too.