]> git.ipfire.org Git - thirdparty/git.git/commit - trailer.c
pretty: support normalization options for %(trailers)
authorJeff King <peff@peff.net>
Tue, 15 Aug 2017 10:25:27 +0000 (06:25 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Aug 2017 18:13:58 +0000 (11:13 -0700)
commit58311c66fd316dff8f2c68a634ca0cf968227870
tree64097b270164843eab9b680239a74f83a0586e45
parentcc1735c4a3cf3377289640ce1af6b4c4523bee11
pretty: support normalization options for %(trailers)

The interpret-trailers command recently learned some options
to make its output easier to parse (for a caller whose only
interested in picking out the trailer values). But it's not
very efficient for asking for the trailers of many commits
in a single invocation.

We already have "%(trailers)" to do that, but it doesn't
know about unfolding or omitting non-trailers. Let's plumb
those options through, so you can have the best of both.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/pretty-formats.txt
pretty.c
t/t4205-log-pretty-formats.sh
trailer.c