Skip to content

Commit

Permalink
diff-helper: pass unrecognized lines through unmodified
Browse files Browse the repository at this point in the history
(and flush any pending renames)
  • Loading branch information
Linus Torvalds committed May 18, 2005
1 parent ad87de7 commit e11b29c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions diff-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit e11b29c

Please sign in to comment.