aboutsummaryrefslogtreecommitdiff
path: root/git-stash.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-07-02 23:15:45 -0700
committerJunio C Hamano <gitster@pobox.com>2007-07-02 23:15:45 -0700
commitfcb10a964875a987f764af401537689e4aea82c6 (patch)
treece5e6311205256d3ac9dd488484741b1d349b347 /git-stash.sh
parent5be60078c935ed08ee8eb5a32680bdfb6bb5bdf3 (diff)
downloadgit-fcb10a964875a987f764af401537689e4aea82c6.tar.gz
git-fcb10a964875a987f764af401537689e4aea82c6.tar.xz
git-stash: make "save" the default action again.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-stash.sh')
-rwxr-xr-xgit-stash.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/git-stash.sh b/git-stash.sh
index 777d1e135..16979ab41 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -137,8 +137,8 @@ apply_stash () {
# Main command set
case "$1" in
-list | '')
- test $# -gt 0 && shift
+list)
+ shift
if test $# = 0
then
set x -n 10
@@ -157,7 +157,7 @@ apply)
clear)
clear_stash
;;
-save)
+save | '')
save_stash && git-reset --hard
;;
*)