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:
Ævar Arnfjörð Bjarmason 2010-07-25 15:06:48 +00:00
parent d93048fb94
commit 6a5fbcee8d

View file

@ -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 ()