Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
stash: use eval_gettextln correctly
author
Ross Lagerwall
<rosslagerwall@gmail.com>
Sat, 14 Apr 2012 12:37:29 +0000
(14:37 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Sat, 14 Apr 2012 23:31:02 +0000
(16:31 -0700)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-stash.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
6eab5f2
)
diff --git
a/git-stash.sh
b/git-stash.sh
index fe4ab28b2e10f85b20ff7892663cbb141fad4723..4e2c7f83314954de6655b0d1bff773c31dfe3ed1 100755
(executable)
--- 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
;;
*)