summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-01-16 05:48:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-01-16 05:48:46 (GMT)
commit073552d7ae5f34b93f9540787874c1ea0fff8051 (patch)
tree5af2b3b0c07e4b841e7145bfdd6ad9e40e626833 /t
parentaa08688362448e0f74ed776449e80d54ca9ae909 (diff)
parent80f5a16798b7ff224aeab4a6b6e3627446071345 (diff)
downloadgit-073552d7ae5f34b93f9540787874c1ea0fff8051.zip
git-073552d7ae5f34b93f9540787874c1ea0fff8051.tar.gz
git-073552d7ae5f34b93f9540787874c1ea0fff8051.tar.bz2
Merge branch 'pb/mergetool-tool-help-fix'
Fix 2.29 regression where "git mergetool --tool-help" fails to list all the available tools. * pb/mergetool-tool-help-fix: mergetool--lib: fix '--tool-help' to correctly show available tools
Diffstat (limited to 't')
-rwxr-xr-xt/t7610-mergetool.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t7610-mergetool.sh b/t/t7610-mergetool.sh
index 70afdd0..6ac75b5 100755
--- a/t/t7610-mergetool.sh
+++ b/t/t7610-mergetool.sh
@@ -828,4 +828,15 @@ test_expect_success 'mergetool -Oorder-file is honored' '
test_cmp expect actual
'
+test_expect_success 'mergetool --tool-help shows recognized tools' '
+ # Check a few known tools are correctly shown
+ git mergetool --tool-help >mergetools &&
+ grep vimdiff mergetools &&
+ grep vimdiff3 mergetools &&
+ grep gvimdiff2 mergetools &&
+ grep araxis mergetools &&
+ grep xxdiff mergetools &&
+ grep meld mergetools
+'
+
test_done