Skip to content

Commit

Permalink
annotate: handle \No newline at end of file.
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Anderson <ryan@michonline.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Ryan Anderson authored and Junio C Hamano committed Mar 2, 2006
1 parent 5aa44d5 commit e5971d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions git-annotate.perl
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,12 @@ sub _git_diff_parse {
}
$ri++;

} elsif (m/^\\/) {
;
# Skip \No newline at end of file.
# But this can be internationalized, so only look
# for an initial \

} else {
if (substr($_,1) ne get_line($slines,$ri) ) {
die sprintf("Line %d (%d) does not match:\n|%s\n|%s\n%s => %s\n",
Expand Down

0 comments on commit e5971d7

Please sign in to comment.