diff: futureproof "stop feeding the backend early" logic
[git.git] / diff-lib.c
index bfa65033734452faae0d5f4365a817f9e35b3e01..869d8f0e77832385c6047dce48e28dcc91171fb3 100644 (file)
@@ -73,9 +73,7 @@ int run_diff_files(struct rev_info *revs, unsigned int option)
                struct cache_entry *ce = active_cache[i];
                int changed;
 
-               if (DIFF_OPT_TST(&revs->diffopt, QUICK) &&
-                   !revs->diffopt.filter &&
-                   DIFF_OPT_TST(&revs->diffopt, HAS_CHANGES))
+               if (diff_can_quit_early(&revs->diffopt))
                        break;
 
                if (!ce_path_match(ce, revs->prune_data))