summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Kaartic Sivaraam <kaarticsivaraam91196@gmail.com>2017-07-11 19:41:10 +0530
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-07-12 13:20:44 -0700
commite1a4a28373befdce97daf9702f6ab790c9806451 (patch)
tree6a4c843e87b0ede3aa9d65ac04bd3be20d383da5 /Documentation
parenthook: name the positional variables (diff)
downloadtgif-e1a4a28373befdce97daf9702f6ab790c9806451.tar.xz
hook: add sign-off using "interpret-trailers"
The sample hook to prepare the commit message before a commit allows users to opt-in to add the sign-off to the commit message. The sign-off is added at a place that isn't consistent with the "-s" option of "git commit". Further, it could go out of view in certain cases. Add the sign-off in a way similar to "-s" option of "git commit" using git's interpret-trailers command. It works well in all cases except when the user invokes "git commit" without any arguments. In that case manually add a new line after the first line to ensure it's consistent with the output of "-s" option. Signed-off-by: Kaartic Sivaraam <kaarticsivaraam91196@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions