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
This commit is contained in:
Junio C Hamano
2024-07-02 09:59:02 -07:00
2 changed files with 11 additions and 1 deletions

3
diff.c
View File

@@ -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) {