summaryrefslogtreecommitdiff
path: root/diff-helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'diff-helper.c')
-rw-r--r--diff-helper.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/diff-helper.c b/diff-helper.c
index 3ef57060d6..2877ddc4df 100644
--- 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;
}