summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-07-02 09:59:02 -0700
committerJunio C Hamano <gitster@pobox.com>2024-07-02 09:59:02 -0700
commit2d97b4e2358aa528f9406b3ca96981fcf89b0d11 (patch)
tree76a676bb43358f80f27ab3c3d1010b87191388fa /diff.c
parentca349c387b0c07ad4dcafabc4b07d1910aab9995 (diff)
parent0f4b0d4cf0e192b770529b97712f31dcf365e118 (diff)
Merge branch 'rs/diff-color-moved-w-no-ext-diff-fix'
"git diff --no-ext-diff" when diff.external is configured ignored the "--color-moved" option. * rs/diff-color-moved-w-no-ext-diff-fix: diff: allow --color-moved with --no-ext-diff
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index 9cbf757b47..7e9041a6a9 100644
--- a/diff.c
+++ b/diff.c
@@ -4968,7 +4968,8 @@ void diff_setup_done(struct diff_options *options)
if (options->flags.follow_renames)
diff_check_follow_pathspec(&options->pathspec, 1);
- if (!options->use_color || external_diff())
+ if (!options->use_color ||
+ (options->flags.allow_external && external_diff()))
options->color_moved = 0;
if (options->filter_not) {