commit: More generous accepting of RFC-2822 footer lines.
commitc1e01b0c5106451770ae77a62f52acfe814c3326
authorDavid Brown <davidb@quicinc.com>
Wed, 28 Oct 2009 17:13:44 +0000 (28 10:13 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Oct 2009 18:03:01 +0000 (28 11:03 -0700)
treeb71fa2e13454566c20ce6cd6025425dd33b67e42
parentf7ad96cfaaec3b32458ca69d44c50d1397d11d38
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>
builtin-commit.c
t/t7501-commit.sh