Skip to content

Commit 6fdd50e

Browse files
jonseymourgitster
authored andcommitted
stash: take advantage of eval_gettextln
Signed-off-by: Jon Seymour <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c2b1a95 commit 6fdd50e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

git-stash.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ save_stash () {
198198
# $ git stash save --blah-blah 2>&1 | head -n 2
199199
# error: unknown option for 'stash save': --blah-blah
200200
# To provide a message, use git stash save -- '--blah-blah'
201-
eval_gettext "$("error: unknown option for 'stash save': \$option
202-
To provide a message, use git stash save -- '\$option'")"; echo
201+
eval_gettextln "$("error: unknown option for 'stash save': \$option
202+
To provide a message, use git stash save -- '\$option'")"
203203
usage
204204
;;
205205
*)
@@ -470,10 +470,7 @@ apply_stash () {
470470
status=$?
471471
if test -n "$INDEX_OPTION"
472472
then
473-
(
474-
gettext "Index was not unstashed." &&
475-
echo
476-
) >&2
473+
gettextln "Index was not unstashed." >&2
477474
fi
478475
exit $status
479476
fi

0 commit comments

Comments
 (0)