Stash now takes account of its key-group arguments.

This commit is contained in:
Phil Jackson 2010-10-16 21:43:41 +01:00
parent 62d3e95805
commit 7f8f7de527

View file

@ -3594,11 +3594,7 @@ Working tree and staging area revert to the current 'HEAD'.
With prefix argument, changes in staging area are kept.
\('git stash save [--keep-index] DESCRIPTION')"
(interactive "sStash description: ")
(apply 'magit-run-git `("stash"
"save"
,@(when current-prefix-arg '("--keep-index"))
"--"
,description)))
(apply 'magit-run-git `("stash" "save" ,@magit-custom-options "--" ,description)))
(magit-define-command stash-snapshot ()
"Create new stash of working tree and staging area; keep changes in place.