X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=tree-diff.c;h=b3cc2e4753447d4734ed08a70e3396771257dced;hb=534376ca04d524b99d69a30bdcf5e70ac8062aee;hp=3f4072525b9489a86b2231748abe13c611e05274;hpb=1f9a980636d39c08c1cf1c13a6e6584d9d039e0e;p=git.git diff --git a/tree-diff.c b/tree-diff.c index 3f4072525..b3cc2e475 100644 --- a/tree-diff.c +++ b/tree-diff.c @@ -142,8 +142,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) { skip_uninteresting(t1, &base, opt, &t1_match);