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:
parent
5aa44d50f4
commit
e5971d7d13
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user