diff-index --quiet: learn the "stop feeding the backend early" logic
[gitweb.git] / tree-diff.c
index 76f83fcc27e50b12ddbc8f72badd8d29f5b4230d..072c441601d2268c3036518d7704b1122271600e 100644 (file)
@@ -153,8 +153,7 @@ int diff_tree(struct tree_desc *t1, struct tree_desc *t2,
        strbuf_add(&base, base_str, baselen);
 
        for (;;) {
-               if (DIFF_OPT_TST(opt, QUICK) &&
-                   DIFF_OPT_TST(opt, HAS_CHANGES))
+               if (diff_can_quit_early(opt))
                        break;
                if (opt->pathspec.nr) {
                        if (!all_t1_interesting)