From f300fab5440f25aabb22c6d1fec411ee10e154b1 Mon Sep 17 00:00:00 2001 From: Thomas Rast Date: Thu, 13 Aug 2009 14:29:45 +0200 Subject: DWIM 'git stash save -p' for 'git stash -p' Signed-off-by: Thomas Rast Signed-off-by: Junio C Hamano --- git-stash.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git-stash.sh') 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")' ;; -- cgit v1.2.3