From 62b6f7e021cd5e7a7c3ee8d46ec45fe39d1bf562 Mon Sep 17 00:00:00 2001 From: John Keeping Date: Fri, 25 Jan 2013 01:43:50 -0800 Subject: git-mergetool: don't hardcode 'mergetool' in show_tool_help When using show_tool_help from git-difftool we will want it to print "git difftool" not "git mergetool" so use "git ${TOOL_MODE}tool". Signed-off-by: John Keeping Signed-off-by: David Aguilar Signed-off-by: Junio C Hamano diff --git a/git-mergetool--lib.sh b/git-mergetool--lib.sh index 1748315..4c1e129 100644 --- a/git-mergetool--lib.sh +++ b/git-mergetool--lib.sh @@ -188,12 +188,14 @@ show_tool_help () { unavailable="$unavailable$i$LF" fi done + + cmd_name=${TOOL_MODE}tool if test -n "$available" then - echo "'git mergetool --tool=' may be set to one of the following:" + echo "'git $cmd_name --tool=' may be set to one of the following:" echo "$available" | sort | sed -e 's/^/ /' else - echo "No suitable tool for 'git mergetool --tool=' found." + echo "No suitable tool for 'git $cmd_name --tool=' found." fi if test -n "$unavailable" then -- cgit v0.10.2-6-g49f6