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

[PATCH] stash: use eval_gettextln correctly

From
Ross Lagerwall <rosslagerwall@gmail.com>
Date
Apr 14, 2012, 12:37 UTC
Message-ID
<1334407049-20614-1-git-send-email-rosslagerwall@gmail.com>
Otherwise, passing an invalid option, git stash -v, gave:

git-stash: line 204: $'error: unknown option for \'stash save\': $option\n To provide a message, use git stash save -- \'$option\'': command not found

Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com>
---
 git-stash.sh |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/git-stash.sh b/git-stash.sh
index fe4ab28..4e2c7f8 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -199,8 +199,8 @@ save_stash () {
 			#    $ git stash save --blah-blah 2>&1 | head -n 2
 			#    error: unknown option for 'stash save': --blah-blah
 			#           To provide a message, use git stash save -- '--blah-blah'
-			eval_gettextln "$("error: unknown option for 'stash save': \$option
-       To provide a message, use git stash save -- '\$option'")"
+			eval_gettextln "error: unknown option for 'stash save': \$option
+       To provide a message, use git stash save -- '\$option'"
 			usage
 			;;
 		*)
-- 
1.7.10
Message 1 of 1 in “stash: use eval_gettextln correctly”
  1. stash: use eval_gettextln correctlyRoss Lagerwall, Apr 14, 2012

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.