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

[PATCH v2 4/5] stash: take advantage of eval_gettextln

From
Jon Seymour <jon.seymour@gmail.com>
Date
Aug 7, 2011, 11:58 UTC
Message-ID
<1312718297-10999-5-git-send-email-jon.seymour@gmail.com>
In-Reply-To
<1312718297-10999-1-git-send-email-jon.seymour@gmail.com>
Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
---
 git-stash.sh |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/git-stash.sh b/git-stash.sh
index f4e6f05..31dec0a 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -198,8 +198,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_gettext "$("error: unknown option for 'stash save': \$option
-       To provide a message, use git stash save -- '\$option'")"; echo
+			eval_gettextln "$("error: unknown option for 'stash save': \$option
+       To provide a message, use git stash save -- '\$option'")"
 			usage
 			;;
 		*)
@@ -470,10 +470,7 @@ apply_stash () {
 		status=$?
 		if test -n "$INDEX_OPTION"
 		then
-			(
-				gettext "Index was not unstashed." &&
-				echo
-			) >&2
+			gettextln "Index was not unstashed." >&2
 		fi
 		exit $status
 	fi
-- 
1.7.6.363.g9b380.dirty
Previous: Jon SeymourNext: Jon Seymour
Message 5 of 6 in “gettext: add gettextln, eval_gettextln to encode common idiom”
  1. 0/5 gettext: add gettextln, eval_gettextln to encode common idiomJon Seymour, Aug 7, 2011
  2. 1/5 gettext: add gettextln, eval_gettextln to encode common idiomJon Seymour, Aug 7, 2011
  3. 2/5 git-am: take advantage of gettextln and eval_gettextln.Jon Seymour, Aug 7, 2011
  4. 3/5 pull: take advantage of eval_gettextlnJon Seymour, Aug 7, 2011
  5. 4/5 stash: take advantage of eval_gettextlnJon Seymour, Aug 7, 2011
  6. 5/5 submodule: take advantage of gettextln and eval_gettextln.Jon Seymour, Aug 7, 2011

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.