summaryrefslogtreecommitdiff
path: root/git-stash.sh
diff options
context:
space:
mode:
authorJon Seymour <jon.seymour@gmail.com>2011-08-07 21:58:16 +1000
committerJunio C Hamano <gitster@pobox.com>2011-08-08 12:05:22 -0700
commit6fdd50e95cff54d3fb0ed40cf69e13461aaf64a1 (patch)
tree701fab02e652ff892a91ad45b10d7113e8bed257 /git-stash.sh
parentc2b1a95c468d742e61fcb7c6e1592f7f5be60ea6 (diff)
downloadgit-6fdd50e95cff54d3fb0ed40cf69e13461aaf64a1.tar.gz
stash: take advantage of eval_gettextln
Signed-off-by: Jon Seymour <jon.seymour@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-stash.sh')
-rwxr-xr-xgit-stash.sh9
1 files changed, 3 insertions, 6 deletions
diff --git a/git-stash.sh b/git-stash.sh
index f4e6f05ee2..31dec0abf1 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -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