Code

diff: futureproof "stop feeding the backend early" logic
[git.git] / tree-diff.c
index 70bdb896562a6480c49efdb51151ba00f7e11d5b..33881d1ad0b7381db4bd39c97e160d93f62a1cdb 100644 (file)
@@ -286,9 +286,7 @@ int diff_tree(struct tree_desc *t1, struct tree_desc *t2, const char *base, stru
        int baselen = strlen(base);
 
        for (;;) {
-               if (DIFF_OPT_TST(opt, QUICK) &&
-                   !opt->filter &&
-                   DIFF_OPT_TST(opt, HAS_CHANGES))
+               if (diff_can_quit_early(opt))
                        break;
                if (opt->nr_paths) {
                        skip_uninteresting(t1, base, baselen, opt);