Re: [PATCH 2/2] [GSOC] ref-filter: add %(header) atom
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 28, 2021, 03:06 UTC
- Message-ID
- <xmqqwnrj7e1x.fsf@gitster.g>
- In-Reply-To
- <aa6d73f3e526f416ee1e4e332e9ca3119efba0e8.1622126603.git.gitgitgadget@gmail.com>
"ZheNing Hu via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 17 quoted lines
> From: ZheNing Hu <adlternative@gmail.com> > > Add new formatting option `%(header)`, which will print the > the structured header part of the raw object data. > > In the storage layout of an object: blob and tree only > contains raw data; commit and tag raw data contains two part: > header and contents. The header of tag contains "object OOO", > "type TTT", "tag AAA", "tagger GGG"; The header of commit > contains "tree RRR", "parent PPP", "author UUU", "committer CCC". > > Signed-off-by: ZheNing Hu <adlternative@gmail.com> > --- > Documentation/git-for-each-ref.txt | 7 +++++ > ref-filter.c | 26 +++++++++++++++++ > t/t6300-for-each-ref.sh | 45 ++++++++++++++++++++++++++++++ > 3 files changed, 78 insertions(+)
While having this may not be wrong, I am not sure who needs it. Is your "cat-file --batch" topic needs this new atom?