diff: allow --color-moved with --no-ext-diff
We ignore the option --color-moved if an external diff program is configured, presumably because its overhead is unnecessary in that case. Respect the option if we don't actually use the external diff, though. Reported-by: lolligerhans@gmx.de Helped-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
786a3e4b8d
commit
0f4b0d4cf0
3
diff.c
3
diff.c
@ -4926,7 +4926,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) {
|
||||
|
Reference in New Issue
Block a user