sequencer.c: teach append_signoff to avoid adding a duplicate newline
authorBrandon Casey <drafnel@gmail.com>
Tue, 12 Feb 2013 10:33:42 +0000 (02:33 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Feb 2013 19:19:34 +0000 (11:19 -0800)
Teach append_signoff to detect whether a blank line exists at the position
that the signed-off-by line will be added, and refrain from adding an
additional one if one already exists. Or, add an additional line if one
is needed to make sure the new footer is separated from the message body
by a blank line.

Signed-off-by: Brandon Casey <bcasey@nvidia.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found