summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aba7dea)
raw | patch | inline | side by side (parent: aba7dea)
author | David Aguilar <davvid@gmail.com> | |
Sat, 23 Jan 2010 06:03:36 +0000 (22:03 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 23 Jan 2010 06:07:29 +0000 (22:07 -0800) |
4cacc621 made difftool fall back to mergetool.prompt
when difftool.prompt is unconfigured. This adds a test.
Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
when difftool.prompt is unconfigured. This adds a test.
Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7800-difftool.sh | patch | blob | history |
diff --git a/t/t7800-difftool.sh b/t/t7800-difftool.sh
index fad54722575b70345d42628702c3519d6d413fae..19c72f55bf60c746f72e640e24043b2d83e00fe3 100755 (executable)
--- a/t/t7800-difftool.sh
+++ b/t/t7800-difftool.sh
git config --unset difftool.prompt
git config --unset merge.tool
git config --unset mergetool.test-tool.cmd
+ git config --unset mergetool.prompt
return 0
}
restore_test_defaults
'
+# Test that we don't have to pass --no-prompt when mergetool.prompt is false
+test_expect_success 'difftool merge.prompt = false' '
+ git config --unset difftool.prompt
+ git config mergetool.prompt false &&
+
+ diff=$(git difftool branch) &&
+ test "$diff" = "branch" &&
+
+ restore_test_defaults
+'
+
# Test that the -y flag can override difftool.prompt = true
test_expect_success 'difftool.prompt can overridden with -y' '
git config difftool.prompt true &&