Skip to content

Commit

Permalink
stash: take advantage of eval_gettextln
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jon Seymour authored and Junio C Hamano committed Aug 8, 2011
1 parent c2b1a95 commit 6fdd50e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions git-stash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
*)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6fdd50e

Please sign in to comment.