Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Rast <trast@student.ethz.ch>2009-08-13 16:29:45 +0400
committerJunio C Hamano <gitster@pobox.com>2009-08-16 02:21:22 +0400
commitf300fab5440f25aabb22c6d1fec411ee10e154b1 (patch)
treed7253c29cd1e7d47a2848a575a5a827e9ae48fb8 /git-stash.sh
parent367ea191e659da05a2e79a7025d8628a02f8268a (diff)
DWIM 'git stash save -p' for 'git stash -p'
Signed-off-by: Thomas Rast <trast@student.ethz.ch> 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 81a72f68cc..9fd72894c4 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -406,8 +406,8 @@ branch)
apply_to_branch "$@"
;;
*)
- case $#,"$1" in
- 0,|1,-k|1,--keep-index)
+ case $#,"$1","$2" in
+ 0,,|1,-k,|1,--keep-index,|1,-p,|1,--patch,|2,-p,--no-keep-index|2,--patch,--no-keep-index)
save_stash "$@" &&
say '(To restore them type "git stash apply")'
;;