diff options
author | Anders Waldenborg <anders@0x63.nu> | 2019-01-29 00:33:34 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-29 21:03:32 +0300 |
commit | 250bea0c1652ad546cd0455852bd734e4820ec46 (patch) | |
tree | 63046899319a3db38cb320d7faddf6d3cc91e63e /trailer.h | |
parent | 3e3f34781964c225ca199ac50527f3ce6feddb84 (diff) |
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} |