summaryrefslogtreecommitdiffstats
path: root/trailer.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-08-15 12:23:21 +0200
committerJunio C Hamano <gitster@pobox.com>2017-08-15 20:13:58 +0200
commit56c493ed1b9c067813fb95ff7cd4f69c7c1d2e36 (patch)
tree44ddaa8efbb61e13812138830ea2137de66304ea /trailer.h
parenttrailer: put process_trailers() options into a struct (diff)
downloadgit-56c493ed1b9c067813fb95ff7cd4f69c7c1d2e36.tar.xz
git-56c493ed1b9c067813fb95ff7cd4f69c7c1d2e36.zip
interpret-trailers: add an option to show only the trailers
In theory it's easy for any reader who wants to parse trailers to do so. But there are a lot of subtle corner cases around what counts as a trailer, when the trailer block begins and ends, etc. Since interpret-trailers already has our parsing logic, let's let callers ask it to just output the trailers. They still have to parse the "key: value" lines, but at least they can ignore all of the other corner cases. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trailer.h')
-rw-r--r--trailer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/trailer.h b/trailer.h
index 9da00bedec..3cf35ced00 100644
--- a/trailer.h
+++ b/trailer.h
@@ -25,6 +25,7 @@ struct trailer_info {
struct process_trailer_options {
int in_place;
int trim_empty;
+ int only_trailers;
};
#define PROCESS_TRAILER_OPTIONS_INIT {0}