git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/3] fixup! mergetool--lib: add functions for finding available tools

From
John Keeping <john@keeping.me.uk>
Date
Jan 30, 2013, 19:55 UTC
Message-ID
<2c7dec096455e6e43d2e9aa28668f69a26f3d5f9.1359575447.git.john@keeping.me.uk>
In-Reply-To
<cover.1359575447.git.john@keeping.me.uk>
Signed-off-by: John Keeping <john@keeping.me.uk>
---
 git-mergetool--lib.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/git-mergetool--lib.sh b/git-mergetool--lib.sh
index 25631cd..b6ed2fa 100644
--- a/git-mergetool--lib.sh
+++ b/git-mergetool--lib.sh
@@ -34,9 +34,9 @@ show_tool_names () {
 				then
 					echo "$preamble"
 					preamble=
-					shown_any=yes
 				fi
-				printf "%s%s\n" "$per_line_prefix" "$tool"
+				shown_any=yes
+				printf "%s%s\n" "$per_line_prefix" "$toolname"
 			fi
 		done
 		test -n "$shown_any"
@@ -244,6 +244,7 @@ show_tool_help () {
 
 	tab='	' av_shown= unav_shown=
 
+	cmd_name=${TOOL_MODE}tool
 	if show_tool_names 'mode_ok && is_available' "$tab$tab" \
 		"$tool_opt may be set to one of the following:"
 	then
-- 
1.8.1.1
Previous: John KeepingNext: Junio C Hamano
Message 2 of 6 in “mergetool: add user configured commands to '--tool-help'”
  1. 0/3 mergetool: add user configured commands to '--tool-help'John Keeping, Jan 30, 2013
  2. 1/3 fixup! mergetool--lib: add functions for finding available toolsJohn Keeping, Jan 30, 2013
  3. Junio C HamanoJan 30, 2013
  4. John KeepingJan 30, 2013
  5. 2/3 fixup! doc: generate a list of valid merge toolsJohn Keeping, Jan 30, 2013
  6. 3/3 mergetool--lib: list user configured tools in '--tool-help'John Keeping, Jan 30, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.