Skip to content

Commit e5971d7

Browse files
pugmajereJunio C Hamano
authored andcommitted
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>
1 parent 5aa44d5 commit e5971d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

git-annotate.perl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,12 @@ sub _git_diff_parse {
304304
}
305305
$ri++;
306306

307+
} elsif (m/^\\/) {
308+
;
309+
# Skip \No newline at end of file.
310+
# But this can be internationalized, so only look
311+
# for an initial \
312+
307313
} else {
308314
if (substr($_,1) ne get_line($slines,$ri) ) {
309315
die sprintf("Line %d (%d) does not match:\n|%s\n|%s\n%s => %s\n",

0 commit comments

Comments
 (0)