annotate: handle \No newline at end of file.

Signed-off-by: Ryan Anderson <ryan@michonline.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Ryan Anderson 2006-03-02 00:23:37 -05:00 committed by Junio C Hamano
parent 5aa44d50f4
commit e5971d7d13

View File

@ -304,6 +304,12 @@ sub _git_diff_parse {
} }
$ri++; $ri++;
} elsif (m/^\\/) {
;
# Skip \No newline at end of file.
# But this can be internationalized, so only look
# for an initial \
} else { } else {
if (substr($_,1) ne get_line($slines,$ri) ) { if (substr($_,1) ne get_line($slines,$ri) ) {
die sprintf("Line %d (%d) does not match:\n|%s\n|%s\n%s => %s\n", die sprintf("Line %d (%d) does not match:\n|%s\n|%s\n%s => %s\n",