summaryrefslogtreecommitdiff
path: root/trailer.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-01-06 23:33:43 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-01-06 23:33:43 -0800
commitb62bbd358025b39d0524a37a55bba47811128f6f (patch)
tree1861b04706fe51a7a2cbd25807b2a431bf555c56 /trailer.h
parentMerge branch 'pk/subsub-fetch-fix-take-2' (diff)
parentpretty format %(trailers): add a "key_value_separator" (diff)
downloadtgif-b62bbd358025b39d0524a37a55bba47811128f6f.tar.xz
Merge branch 'ab/trailers-extra-format'
The "--format=%(trailers)" mechanism gets enhanced to make it easier to design output for machine consumption. * ab/trailers-extra-format: pretty format %(trailers): add a "key_value_separator" pretty format %(trailers): add a "keyonly" pretty-format %(trailers): fix broken standalone "valueonly" pretty format %(trailers) doc: avoid repetition pretty format %(trailers) test: split a long line
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 cd93e7ddea..795d2fccfd 100644
--- a/trailer.h
+++ b/trailer.h
@@ -71,8 +71,10 @@ struct process_trailer_options {
int only_input;
int unfold;
int no_divider;
+ int key_only;
int value_only;
const struct strbuf *separator;
+ const struct strbuf *key_value_separator;
int (*filter)(const struct strbuf *, void *);
void *filter_data;
};