aboutsummaryrefslogtreecommitdiff
path: root/git-stash.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-07-01 15:29:01 -0700
committerJunio C Hamano <gitster@pobox.com>2007-07-01 15:29:01 -0700
commit9488e875862de4e3c9b022ecd9d0845bc28d1996 (patch)
treecd8d196a6a065c10b6147de893e25f82e686eda4 /git-stash.sh
parent09ccdb630517842e6ad3d9354fbd856174c70d17 (diff)
downloadgit-9488e875862de4e3c9b022ecd9d0845bc28d1996.tar.gz
git-9488e875862de4e3c9b022ecd9d0845bc28d1996.tar.xz
git-stash: require "save" to be explicit and update documentation
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-stash.sh')
-rwxr-xr-xgit-stash.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-stash.sh b/git-stash.sh
index c8c5c5648..ec18ef6d4 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -132,7 +132,7 @@ apply_stash () {
# Main command set
case "$1" in
-list)
+list | '')
shift
if test $# = 0
then
@@ -152,7 +152,7 @@ apply)
clear)
clear_stash
;;
-'')
+save)
save_stash && git-reset --hard
;;
*)