diff options
author | Anders Waldenborg <anders@0x63.nu> | 2019-01-28 22:33:34 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-29 10:03:32 -0800 |
commit | 250bea0c1652ad546cd0455852bd734e4820ec46 (patch) | |
tree | 63046899319a3db38cb320d7faddf6d3cc91e63e /trailer.h | |
parent | pretty: single return path in %(trailers) handling (diff) | |
download | tgif-250bea0c1652ad546cd0455852bd734e4820ec46.tar.xz |
pretty: allow showing specific trailers
Adds a new "key=X" option to "%(trailers)" which will cause it to only
print trailer lines which match any of the specified keys.
Signed-off-by: Anders Waldenborg <anders@0x63.nu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trailer.h')
-rw-r--r-- | trailer.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -72,6 +72,8 @@ struct process_trailer_options { int only_input; int unfold; int no_divider; + int (*filter)(const struct strbuf *, void *); + void *filter_data; }; #define PROCESS_TRAILER_OPTIONS_INIT {0} |