From: Ryan Anderson Date: Thu, 2 Mar 2006 05:23:37 +0000 (-0500) Subject: annotate: handle \No newline at end of file. X-Git-Tag: v1.3.0-rc1~103 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e5971d7d138879c071643e4e08fceb4d0ae354ac;p=git.git annotate: handle \No newline at end of file. Signed-off-by: Ryan Anderson Signed-off-by: Junio C Hamano --- diff --git a/git-annotate.perl b/git-annotate.perl index f9c2c6caf..d6028c93c 100755 --- a/git-annotate.perl +++ b/git-annotate.perl @@ -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",