diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-10-01 21:56:28 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-10-03 11:58:18 -0700 |
commit | 81b568c839376a10cd5fe29db0b8a72f537fa36a (patch) | |
tree | 375e90f7c9c7f0087562e3cccbb20f82a764e27d /diff.c | |
parent | c5aa90682f82fe0dabdc0280be93568d52efddfc (diff) | |
download | git-81b568c839376a10cd5fe29db0b8a72f537fa36a.tar.gz |
diff: resurrect XDF_NEED_MINIMAL with --minimal
Earlier, 582aa00 (git diff too slow for a file, 2010-05-02)
unconditionally dropped XDF_NEED_MINIMAL option from the internal xdiff
invocation to help performance on pathological cases, while hinting that a
follow-up patch could reintroduce it with "--minimal" option from the
command line.
Make it so.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -3385,6 +3385,10 @@ int diff_opt_parse(struct diff_options *options, const char **av, int ac) } /* xdiff options */ + else if (!strcmp(arg, "--minimal")) + DIFF_XDL_SET(options, NEED_MINIMAL); + else if (!strcmp(arg, "--no-minimal")) + DIFF_XDL_CLR(options, NEED_MINIMAL); else if (!strcmp(arg, "-w") || !strcmp(arg, "--ignore-all-space")) DIFF_XDL_SET(options, IGNORE_WHITESPACE); else if (!strcmp(arg, "-b") || !strcmp(arg, "--ignore-space-change")) |