]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diff.c
diff: introduce DIFF_PICKAXE_KINDS_MASK
[thirdparty/git.git] / diff.c
diff --git a/diff.c b/diff.c
index 0763e89263efac5fe75a57f0c068049fae610851..5508745dc88f60bbeabcdf318bebf3ce6b36b90d 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -4173,7 +4173,7 @@ void diff_setup_done(struct diff_options *options)
        /*
         * Also pickaxe would not work very well if you do not say recursive
         */
-       if (options->pickaxe)
+       if (options->pickaxe_opts & DIFF_PICKAXE_KINDS_MASK)
                options->flags.recursive = 1;
        /*
         * When patches are generated, submodules diffed against the work tree
@@ -5777,7 +5777,7 @@ void diffcore_std(struct diff_options *options)
                if (options->break_opt != -1)
                        diffcore_merge_broken();
        }
-       if (options->pickaxe)
+       if (options->pickaxe_opts & DIFF_PICKAXE_KINDS_MASK)
                diffcore_pickaxe(options);
        if (options->orderfile)
                diffcore_order(options->orderfile);