magit-stash: Prefix user-supplied description with --
Fixes a bug in magit-stash that prevented magit from creating stashes that began with "-", since git-stash parse them as options. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
This commit is contained in:
parent
d93048fb94
commit
6a5fbcee8d
1 changed files with 1 additions and 0 deletions
1
magit.el
1
magit.el
|
@ -3412,6 +3412,7 @@ With prefix argument, changes in staging area are kept.
|
|||
(apply 'magit-run-git `("stash"
|
||||
"save"
|
||||
,@(when current-prefix-arg '("--keep-index"))
|
||||
"--"
|
||||
,description)))
|
||||
|
||||
(magit-define-command stash-snapshot ()
|
||||
|
|
Loading…
Reference in a new issue