interpret-trailers: add an option to show only existing trailers
authorJeff King <peff@peff.net>
Tue, 15 Aug 2017 10:23:25 +0000 (06:23 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Aug 2017 18:13:58 +0000 (11:13 -0700)
commitfdbdb64f49959f9c83329554080934895f02ae59
treeed63c6ef71dd06f61b3d2abe2f08a9f667de7381
parent56c493ed1b9c067813fb95ff7cd4f69c7c1d2e36
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>
Documentation/git-interpret-trailers.txt
builtin/interpret-trailers.c
t/t7513-interpret-trailers.sh
trailer.c
trailer.h