Re: [Bug] for-each-ref: %(object) and %(type) unimplemented
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 25, 2008, 19:38 UTC
- Message-ID
- <7v63rx1ezw.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <237967ef0806251208u65c17652gc6091da98294f807@mail.gmail.com>
"Mikael Magnusson" <mikachu@gmail.com> writes:
Show 13 quoted lines
> 2008/6/25 Jeff King <peff@peff.net>: >> On Wed, Jun 25, 2008 at 12:08:15PM -0400, Jeff King wrote: >> >>> Since you seem to be testing for-each-ref, maybe it would make sense to >>> put together a test script that exercises each of the atoms? >> >> Hmm. Actually, there is a test in t6300 that runs with each atom name. >> Unfortunately, it doesn't bother actually checking the output for >> sanity, so the fact that these atoms returned the empty string was >> missed. > > The documentation also says "tree" and "parent" should work (which they > also don't).
The doc does not say any such thing. A tag object does not have 'parent' nor 'tree' header fields.
Neither a commit have 'object' nor 'type' header fields and you cannot ask for them when showing a commit object.