stash: use eval_gettextln correctly

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>
This commit is contained in:
Ross Lagerwall 2012-04-14 14:37:29 +02:00 committed by Junio C Hamano
parent 6eab5f2f14
commit ed3c400c6a

View File

@ -199,8 +199,8 @@ save_stash () {
# $ git stash save --blah-blah 2>&1 | head -n 2 # $ git stash save --blah-blah 2>&1 | head -n 2
# error: unknown option for 'stash save': --blah-blah # error: unknown option for 'stash save': --blah-blah
# To provide a message, use git stash save -- '--blah-blah' # To provide a message, use git stash save -- '--blah-blah'
eval_gettextln "$("error: unknown option for 'stash save': \$option eval_gettextln "error: unknown option for 'stash save': \$option
To provide a message, use git stash save -- '\$option'")" To provide a message, use git stash save -- '\$option'"
usage usage
;; ;;
*) *)