]> asedeno.scripts.mit.edu Git - git.git/blobdiff - git-stash.sh
git-stash: make "save" the default action again.
[git.git] / git-stash.sh
index 777d1e13515960e20e50efa8eeb05289b8d225fb..16979ab41f1f4b4a9276ac9f318e3885f5c6d2a5 100755 (executable)
@@ -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
        ;;
 *)