projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad87de7
)
diff-helper: pass unrecognized lines through unmodified
author
Linus Torvalds
<torvalds@ppc970.osdl.org>
Wed, 18 May 2005 18:33:46 +0000
(11:33 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Wed, 18 May 2005 18:33:46 +0000
(11:33 -0700)
(and flush any pending renames)
diff-helper.c
patch
|
blob
|
history
diff --git
a/diff-helper.c
b/diff-helper.c
index
3ef5706
..
2877ddc
100644
(file)
--- a/
diff-helper.c
+++ b/
diff-helper.c
@@
-268,11
+268,12
@@
int main(int ac, const char **av) {
if (sb.eof)
break;
status = parse_diff_raw_output(sb.buf, av+1, ac-1, reverse);
- if (status)
- fprintf(stderr, "cannot parse %s\n", sb.buf);
+ if (status) {
+ flush_renames(av+1, ac-1, reverse);
+ printf("%s%c", sb.buf, line_termination);
+ }
}
- if (detect_rename)
- flush_renames(av+1, ac-1, reverse);
+ flush_renames(av+1, ac-1, reverse);
return 0;
}