Skip to content

Commit 7eeccc6

Browse files
committed
TO-DROP
This avoids merge conflicts; we will resolve them after the next merge. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 2dd86f3 commit 7eeccc6

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

builtin/difftool.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -727,11 +727,7 @@ int cmd_difftool(int argc, const char **argv, const char *prefix)
727727
setup_work_tree();
728728
setenv(GIT_DIR_ENVIRONMENT, absolute_path(get_git_dir()), 1);
729729
setenv(GIT_WORK_TREE_ENVIRONMENT, absolute_path(get_git_work_tree()), 1);
730-
} else if (dir_diff)
731-
die(_("--dir-diff is incompatible with --no-index"));
732-
733-
if (use_gui_tool + !!difftool_cmd + !!extcmd > 1)
734-
die(_("--gui, --tool and --extcmd are mutually exclusive"));
730+
}
735731

736732
if (use_gui_tool)
737733
setenv("GIT_MERGETOOL_GUI", "true", 1);

t/t7800-difftool.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -726,17 +726,9 @@ test_expect_success 'outside worktree' '
726726
echo 2 >2 &&
727727
test_expect_code 1 nongit git \
728728
-c diff.tool=echo -c difftool.echo.cmd="echo \$LOCAL \$REMOTE" \
729-
difftool --no-prompt --no-index ../1 ../2 >actual &&
729+
difftool --no-prompt --no-index --ext-diff ../1 ../2 >actual &&
730730
echo "../1 ../2" >expect &&
731731
test_cmp expect actual
732732
'
733733

734-
test_expect_success 'difftool --gui, --tool and --extcmd are exclusive' '
735-
difftool_test_setup &&
736-
test_must_fail git difftool --gui --tool=test-tool &&
737-
test_must_fail git difftool --gui --extcmd=cat &&
738-
test_must_fail git difftool --tool=test-tool --extcmd=cat &&
739-
test_must_fail git difftool --gui --tool=test-tool --extcmd=cat
740-
'
741-
742734
test_done

0 commit comments

Comments
 (0)