interpret-trailers: add options for actions
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 1 Aug 2017 09:03:32 +0000 (11:03 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Aug 2017 19:23:28 +0000 (12:23 -0700)
commit0ea5292e6be2f37b647b744177cfe6cc5e6f605d
tree6b2c409d6404c15ac21bf66db760291cd5210890
parent51166b8754e0df4ed3ee559ddcc4641035ec98ec
interpret-trailers: add options for actions

Allow using non-default values for trailers without having to set
them up in .gitconfig first.  For example, if you have the following
configuration

     trailer.signed-off-by.where = end

you may use "--where before" when a patch author forgets his
Signed-off-by and provides it in a separate email.  Likewise for
--if-exists and --if-missing

Reverting to the behavior specified by .gitconfig is done with
--no-where, --no-if-exists and --no-if-missing.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
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