blame: make sure that the last line ends in an LF
authorJohannes Schindelin <redacted>
Tue, 20 Oct 2009 03:06:28 +0000 (22:06 -0500)
committerJunio C Hamano <redacted>
Thu, 22 Oct 2009 00:16:58 +0000 (17:16 -0700)
commita5ca8367c223b154b485ea51dc8c97201498caa4
tree8200d2abfc65f66dfe30f72b3a444062b7a9a515
parent78d553b7d7b269bb22ebd8b1198657c37484a3a0
blame: make sure that the last line ends in an LF

This is convenient when parsing multiple the blame of multiple files,
for example:

    git ls-files -z --exclude-standard -- "*.[ch]" |
    xargs --null -n 1 git blame -p > output

and then analyzing the 'output' file using a seperate script.

Currently the parsing is difficult when not all files have a newline
at EOF, this patch ensures that even such files have a newline at the
end of the blame output.

Signed-off-by: Sverre Rabbelier <redacted>
CC: Johannes Schindelin <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin-blame.c
git clone https://git.99rst.org/PROJECT