diff-helper: pass unrecognized lines through unmodified

(and flush any pending renames)
This commit is contained in:
Linus Torvalds 2005-05-18 11:33:46 -07:00
parent ad87de7c9d
commit e11b29c50c

View File

@ -268,11 +268,12 @@ int main(int ac, const char **av) {
if (sb.eof) if (sb.eof)
break; break;
status = parse_diff_raw_output(sb.buf, av+1, ac-1, reverse); status = parse_diff_raw_output(sb.buf, av+1, ac-1, reverse);
if (status) if (status) {
fprintf(stderr, "cannot parse %s\n", sb.buf); 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; return 0;
} }