зеркало из https://github.com/microsoft/git.git
diff-helper: pass unrecognized lines through unmodified
(and flush any pending renames)
This commit is contained in:
Родитель
ad87de7c9d
Коммит
e11b29c50c
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче