From e5971d7d138879c071643e4e08fceb4d0ae354ac Mon Sep 17 00:00:00 2001 From: Ryan Anderson Date: Thu, 2 Mar 2006 00:23:37 -0500 Subject: annotate: handle \No newline at end of file. Signed-off-by: Ryan Anderson Signed-off-by: Junio C Hamano --- git-annotate.perl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'git-annotate.perl') diff --git a/git-annotate.perl b/git-annotate.perl index f9c2c6caf5..d6028c93ca 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", -- cgit v1.2.3