summaryrefslogtreecommitdiff
path: root/trailer.h
diff options
context:
space:
mode:
authorLibravatar Anders Waldenborg <anders@0x63.nu>2019-01-28 22:33:34 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-01-29 10:03:32 -0800
commit250bea0c1652ad546cd0455852bd734e4820ec46 (patch)
tree63046899319a3db38cb320d7faddf6d3cc91e63e /trailer.h
parentpretty: single return path in %(trailers) handling (diff)
downloadtgif-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/trailer.h b/trailer.h
index b997739649..5255b676de 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}