Re: [PATCH v4.1 09/12] sequencer.c: teach append_signoff to avoid adding a duplicate newline
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 21, 2013, 18:51 UTC
- Message-ID
- <7vip5lv6tv.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1360665222-3166-1-git-send-email-drafnel@gmail.com>
Brandon Casey <drafnel@gmail.com> writes:
Show 11 quoted lines
> 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> > --- > > > A slight tweak. And I promise, no more are coming.
When I do
$ git commit -s
it should start my editor with this in the buffer:
----------------------------------------------------------------
Signed-off-by: Junio C Hamano <gitster@pobox.com> ----------------------------------------------------------------
and the cursor blinking at the beginning of the file. Annoyingly this step breaks it by removing the leading blank line.