Merge branch 'jk/diff-not-so-quick'
* jk/diff-not-so-quick: diff: futureproof "stop feeding the backend early" logic diff_tree: disable QUICK optimization with diff filter Conflicts: diff.c
This commit is contained in:
7
diff.c
7
diff.c
@ -4456,6 +4456,13 @@ int diff_result_code(struct diff_options *opt, int status)
|
||||
return result;
|
||||
}
|
||||
|
||||
int diff_can_quit_early(struct diff_options *opt)
|
||||
{
|
||||
return (DIFF_OPT_TST(opt, QUICK) &&
|
||||
!opt->filter &&
|
||||
DIFF_OPT_TST(opt, HAS_CHANGES));
|
||||
}
|
||||
|
||||
/*
|
||||
* Shall changes to this submodule be ignored?
|
||||
*
|
||||
|
Reference in New Issue
Block a user