branch: elpa/magit commit e8b85e43d491ca0c0a3fc41ee5d8c4aa34649cd3 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
magit-stash-push: Move "--" after other arguments Closes #5260. --- lisp/magit-stash.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/magit-stash.el b/lisp/magit-stash.el index b929332224a..7f42865fb17 100644 --- a/lisp/magit-stash.el +++ b/lisp/magit-stash.el @@ -256,7 +256,9 @@ specifying a list of files to be stashed." (list t))) (if transient (transient-setup 'magit-stash-push) - (magit-run-git "stash" "push" args))) + (magit-run-git "stash" "push" + (seq-filter #'atom args) + (assoc "--" args)))) ;;;###autoload (defun magit-stash-apply (stash)