projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5aa44d5
)
annotate: handle \No newline at end of file.
author
Ryan Anderson
<ryan@michonline.com>
Thu, 2 Mar 2006 05:23:37 +0000
(
00:23
-0500)
committer
Junio C Hamano
<junkio@cox.net>
Thu, 2 Mar 2006 05:32:17 +0000
(21:32 -0800)
Signed-off-by: Ryan Anderson <ryan@michonline.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-annotate.perl
patch
|
blob
|
history
diff --git
a/git-annotate.perl
b/git-annotate.perl
index f9c2c6caf5d2127d59cfd91d7bbecc2bc1466daf..d6028c93cadd0a7c0138ab6c0edf2b02055a4d48 100755
(executable)
--- 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",