From 6a5fbcee8da073884a84cc1ee1d59452cef79c06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 25 Jul 2010 15:06:48 +0000 Subject: [PATCH] magit-stash: Prefix user-supplied description with -- MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- magit.el | 1 + 1 file changed, 1 insertion(+) diff --git a/magit.el b/magit.el index 57bd83fa..bd706a5b 100644 --- a/magit.el +++ b/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 ()