@matheusbsbs / matheus-bagliano / commits / e5971d7d13
Fork 0

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>

Ryan Anderson committed Mar 2, 2006 at 00:23 UTC e5971d7d138879c071643e4e08fceb4d0ae354ac
1 file changed +6
git-annotate.perl
+6
@@ -304,6 +304,12 @@ sub _git_diff_parse {
304 }
305 $ri++;
306
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 +
313 } else {
314 if (substr($_,1) ne get_line($slines,$ri) ) {
315 die sprintf("Line %d (%d) does not match:\n|%s\n|%s\n%s => %s\n",