1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-25 21:46:10 +02:00

stash: take advantage of eval_gettextln

Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jon Seymour 2011-08-07 21:58:16 +10:00 committed by Junio C Hamano
parent c2b1a95c46
commit 6fdd50e95c

View File

@ -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