"Martin Langhoff" <martin.langhoff@xxxxxxxxx> writes: > git-annotate is dying when a patch is missing trailing newline. There > _are_ valid situations where code files are not expected to have > trailing newlines. Just thing of that glorious programming language, > PHP. Does this help? --- diff --git a/git-annotate.perl b/git-annotate.perl index f9c2c6c..d30eba7 100755 --- a/git-annotate.perl +++ b/git-annotate.perl @@ -304,6 +304,10 @@ sub _git_diff_parse { } $ri++; + } elsif (m/^\\/) { + + ; # ignore for now... + } 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", - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html