diff options
author | Jeff King <peff@peff.net> | 2017-08-15 13:23:21 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-15 21:13:58 +0300 |
commit | 56c493ed1b9c067813fb95ff7cd4f69c7c1d2e36 (patch) | |
tree | 44ddaa8efbb61e13812138830ea2137de66304ea /Documentation/git-interpret-trailers.txt | |
parent | 8abc89800c09cda7910c2211ebbbbb95a3008b63 (diff) |
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 'Documentation/git-interpret-trailers.txt')
-rw-r--r-- | Documentation/git-interpret-trailers.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/git-interpret-trailers.txt b/Documentation/git-interpret-trailers.txt index 31cdeaecdf..295dffbd21 100644 --- a/Documentation/git-interpret-trailers.txt +++ b/Documentation/git-interpret-trailers.txt @@ -80,6 +80,9 @@ OPTIONS trailer to the input messages. See the description of this command. +--only-trailers:: + Output only the trailers, not any other parts of the input. + CONFIGURATION VARIABLES ----------------------- |