aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-interpret-trailers.txt
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-08-15 06:23:25 -0400
committerJunio C Hamano <gitster@pobox.com>2017-08-15 11:13:58 -0700
commitfdbdb64f49959f9c83329554080934895f02ae59 (patch)
treeed63c6ef71dd06f61b3d2abe2f08a9f667de7381 /Documentation/git-interpret-trailers.txt
parent56c493ed1b9c067813fb95ff7cd4f69c7c1d2e36 (diff)
downloadgit-fdbdb64f49959f9c83329554080934895f02ae59.tar.gz
git-fdbdb64f49959f9c83329554080934895f02ae59.tar.xz
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 'Documentation/git-interpret-trailers.txt')
-rw-r--r--Documentation/git-interpret-trailers.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git-interpret-trailers.txt b/Documentation/git-interpret-trailers.txt
index 295dffbd2..7cc43b0e3 100644
--- a/Documentation/git-interpret-trailers.txt
+++ b/Documentation/git-interpret-trailers.txt
@@ -83,6 +83,11 @@ OPTIONS
--only-trailers::
Output only the trailers, not any other parts of the input.
+--only-input::
+ Output only trailers that exist in the input; do not add any
+ from the command-line or by following configured `trailer.*`
+ rules.
+
CONFIGURATION VARIABLES
-----------------------