Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-08-15 13:23:25 +0300
committerJunio C Hamano <gitster@pobox.com>2017-08-15 21:13:58 +0300
commitfdbdb64f49959f9c83329554080934895f02ae59 (patch)
treeed63c6ef71dd06f61b3d2abe2f08a9f667de7381 /trailer.h
parent56c493ed1b9c067813fb95ff7cd4f69c7c1d2e36 (diff)
interpret-trailers: add an option to show only existing trailers
It can be useful to invoke interpret-trailers for the primary purpose of parsing existing trailers. But in that case, we don't want to apply existing ifMissing or ifExists rules from the config. Let's add a special mode where we avoid applying those rules. Coupled with --only-trailers, this gives us a reasonable parsing tool. 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 3cf35ced00..76c3b571bf 100644
--- a/trailer.h
+++ b/trailer.h
@@ -26,6 +26,7 @@ struct process_trailer_options {
int in_place;
int trim_empty;
int only_trailers;
+ int only_input;
};
#define PROCESS_TRAILER_OPTIONS_INIT {0}