summaryrefslogtreecommitdiff
path: root/trailer.h
diff options
context:
space:
mode:
authorAnders Waldenborg <anders@0x63.nu>2019-01-28 21:33:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-01-29 18:03:32 (GMT)
commit250bea0c1652ad546cd0455852bd734e4820ec46 (patch)
tree63046899319a3db38cb320d7faddf6d3cc91e63e /trailer.h
parent3e3f34781964c225ca199ac50527f3ce6feddb84 (diff)
downloadgit-250bea0c1652ad546cd0455852bd734e4820ec46.zip
git-250bea0c1652ad546cd0455852bd734e4820ec46.tar.gz
git-250bea0c1652ad546cd0455852bd734e4820ec46.tar.bz2
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/trailer.h b/trailer.h
index b997739..5255b67 100644
--- a/trailer.h
+++ b/trailer.h
@@ -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}