]> git.ipfire.org Git - thirdparty/git.git/commit - diff.c
diff.c: emit_add_line() takes only the rest of the line
authorJunio C Hamano <gitster@pobox.com>
Tue, 15 Sep 2009 01:44:01 +0000 (18:44 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Sep 2009 09:41:02 +0000 (02:41 -0700)
commit018cff70462eb59779c96a383531c4440fb35b9c
treeeff31f630724c8803f4073f4240ee08a553598fd
parent250f79930d84af54dce15320914ea911d58dd8ca
diff.c: emit_add_line() takes only the rest of the line

As the first character on the line that is fed to this function is always
"+", it is pointless to send that along with the rest of the line.

This change will make it easier to reuse the logic when emitting the
rewrite diff, as we do not want to copy a line only to add "+"/"-"/" "
immediately before its first character when we produce rewrite diff
output.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c