stash: take advantage of eval_gettextln
Signed-off-by: Jon Seymour <jon.seymour@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jon Seymour committed
Aug 7, 2011 at 21:58 UTC
6fdd50e95cff54d3fb0ed40cf69e13461aaf64a1
1 file changed
+3
-6
git-stash.sh
+3
-6
@@ -198,8 +198,8 @@ save_stash () {
198
# $ git stash save --blah-blah 2>&1 | head -n 2
199
# error: unknown option for 'stash save': --blah-blah
200
# 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'")"
203
usage
204
;;
205
*)
@@ -470,10 +470,7 @@ apply_stash () {
470
status=$?
471
if test -n "$INDEX_OPTION"
472
then
473
- (
474
- gettext "Index was not unstashed." &&
475
- echo
476
- ) >&2
473
+ gettextln "Index was not unstashed." >&2
474
fi
475
exit $status
476
fi