]> git.ipfire.org Git - thirdparty/git.git/commit
commit: add --trailer option
authorZheNing Hu <adlternative@gmail.com>
Tue, 23 Mar 2021 13:55:57 +0000 (13:55 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Mar 2021 17:31:38 +0000 (10:31 -0700)
commit2daae3d1d1bf513f1e1c00f1e4df75e1cb500e0f
tree80c488543732db29ca376021d7fe39dcbe4f6e29
parent142430338477d9d1bb25be66267225fb58498d92
commit: add --trailer option

Historically, Git has supported the 'Signed-off-by' commit trailer
using the '--signoff' and the '-s' option from the command line.
But users may need to provide other trailer information from the
command line such as "Helped-by", "Reported-by", "Mentored-by",

Now implement a new `--trailer <token>[(=|:)<value>]` option to pass
other trailers to `interpret-trailers` and insert them into commit
messages.

Signed-off-by: ZheNing Hu <adlternative@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-commit.txt
builtin/commit.c
t/t7502-commit-porcelain.sh