author | David Brown <davidb@quicinc.com> | |
Wed, 28 Oct 2009 17:13:44 +0000 (10:13 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 28 Oct 2009 18:03:01 +0000 (11:03 -0700) | ||
commit | c1e01b0c5106451770ae77a62f52acfe814c3326 | |
tree | b71fa2e13454566c20ce6cd6025425dd33b67e42 | tree | snapshot |
parent | f7ad96cfaaec3b32458ca69d44c50d1397d11d38 | commit | diff |
commit: More generous accepting of RFC-2822 footer lines.
'git commit -s' will insert a blank line before the Signed-off-by
line at the end of the message, unless this last line is a
Signed-off-by line itself. Common use has other trailing lines
at the ends of commit text, in the style of RFC2822 headers.
Be more generous in considering lines to be part of this footer.
If the last paragraph of the commit message reasonably resembles
RFC-2822 formatted lines, don't insert that blank line.
The new Signed-off-by line is still only suppressed when the
author's existing Signed-off-by is the last line of the message.
Signed-off-by: David Brown <davidb@quicinc.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
'git commit -s' will insert a blank line before the Signed-off-by
line at the end of the message, unless this last line is a
Signed-off-by line itself. Common use has other trailing lines
at the ends of commit text, in the style of RFC2822 headers.
Be more generous in considering lines to be part of this footer.
If the last paragraph of the commit message reasonably resembles
RFC-2822 formatted lines, don't insert that blank line.
The new Signed-off-by line is still only suppressed when the
author's existing Signed-off-by is the last line of the message.
Signed-off-by: David Brown <davidb@quicinc.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c | diff | blob | history | |
t/t7501-commit.sh | diff | blob | history |