]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
sequencer: teach write_message() to append an optional LF
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 21 Oct 2016 12:26:09 +0000 (14:26 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Oct 2016 16:32:35 +0000 (09:32 -0700)
commitf56fffef9a36b46a1ab2f377c2dd84701e36855a
tree1029edb53c136c4c12c4a62924daa51a025b125d
parent75871495e9e0012604861752d082715d9444333d
sequencer: teach write_message() to append an optional LF

This commit prepares for future callers that will have a pointer/length
to some text to be written that lacks an LF, yet an LF is desired.
Instead of requiring the caller to append an LF to the buffer (and
potentially allocate memory to do so), the write_message() function
learns to append an LF at the end of the file.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c