C-u will now keep the index when stashing.
This commit is contained in:
parent
a421f9f936
commit
f9f1c00c78
1 changed files with 4 additions and 1 deletions
5
magit.el
5
magit.el
|
@ -2730,7 +2730,10 @@ Prefix arg means justify as well."
|
||||||
|
|
||||||
(defun magit-stash (description)
|
(defun magit-stash (description)
|
||||||
(interactive "sStash description: ")
|
(interactive "sStash description: ")
|
||||||
(magit-run-git "stash" "save" description))
|
(apply 'magit-run-git `("stash"
|
||||||
|
"save"
|
||||||
|
,@(when current-prefix-arg '("--keep-index"))
|
||||||
|
,description)))
|
||||||
|
|
||||||
(defun magit-stash-snapshot ()
|
(defun magit-stash-snapshot ()
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
Loading…
Reference in a new issue