summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-02-05 16:31:24 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-02-05 16:31:24 -0800
commit64971f0ac0200d3bb53cb19e7367cf57a40ae1fc (patch)
tree4d21d1a12b56d6b2896476d97861209b31faf688 /t
parentMerge branch 'ds/for-each-repo-noopfix' into maint (diff)
parentmergetool--lib: fix '--tool-help' to correctly show available tools (diff)
downloadtgif-64971f0ac0200d3bb53cb19e7367cf57a40ae1fc.tar.xz
Merge branch 'pb/mergetool-tool-help-fix' into maint
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 70afdd06fa..6ac75b5d4c 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