summaryrefslogtreecommitdiff
path: root/git-stash.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-07-01 22:29:01 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-07-01 22:29:01 (GMT)
commit9488e875862de4e3c9b022ecd9d0845bc28d1996 (patch)
treecd8d196a6a065c10b6147de893e25f82e686eda4 /git-stash.sh
parent09ccdb630517842e6ad3d9354fbd856174c70d17 (diff)
downloadgit-9488e875862de4e3c9b022ecd9d0845bc28d1996.zip
git-9488e875862de4e3c9b022ecd9d0845bc28d1996.tar.gz
git-9488e875862de4e3c9b022ecd9d0845bc28d1996.tar.bz2
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 c8c5c56..ec18ef6 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
;;
*)