X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft7800-difftool.sh;h=19c72f55bf60c746f72e640e24043b2d83e00fe3;hb=801bad3ba4eb5014d402201c85c61a969436adf0;hp=fad54722575b70345d42628702c3519d6d413fae;hpb=41905647fc6c94632b48b7caf65eaf3ae18f6d70;p=git.git diff --git a/t/t7800-difftool.sh b/t/t7800-difftool.sh index fad547225..19c72f55b 100755 --- a/t/t7800-difftool.sh +++ b/t/t7800-difftool.sh @@ -27,6 +27,7 @@ remove_config_vars() git config --unset difftool.prompt git config --unset merge.tool git config --unset mergetool.test-tool.cmd + git config --unset mergetool.prompt return 0 } @@ -159,6 +160,17 @@ test_expect_success 'difftool.prompt config variable is false' ' 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 &&