mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
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>
This commit is contained in:
parent
367ea191e6
commit
f300fab544
|
@ -14,7 +14,7 @@ SYNOPSIS
|
|||
'git stash' ( pop | apply ) [--index] [-q|--quiet] [<stash>]
|
||||
'git stash' branch <branchname> [<stash>]
|
||||
'git stash' [save [--patch] [-k|--[no-]keep-index] [-q|--quiet] [<message>]]
|
||||
'git stash' [-k|--keep-index]
|
||||
'git stash' [-p|--patch|-k|--keep-index]
|
||||
'git stash' clear
|
||||
'git stash' create
|
||||
|
||||
|
|
|
@ -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")'
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue