C-u will now keep the index when stashing.

This commit is contained in:
Phil Jackson 2010-03-10 21:19:46 +00:00
parent a421f9f936
commit f9f1c00c78

View file

@ -2730,7 +2730,10 @@ Prefix arg means justify as well."
(defun magit-stash (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 ()
(interactive)