Commit d4d368c8 authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-push-refspecs: Use dedicated history variable

Closes #3361.
parent dbf1a5a3
......@@ -829,6 +829,8 @@ Both the source and the target are read in the minibuffer."
(magit-git-push source target args))
(defvar magit-push-refspecs-history nil)
(defun magit-push-refspecs (remote refspecs args)
"Push one or multiple REFSPECS to a REMOTE.
......@@ -840,7 +842,8 @@ is used."
(list (magit-read-remote "Push to remote")
(split-string (magit-completing-read-multiple
"Push refspec,s"
(cons "HEAD" (magit-list-local-branch-names)))
(cons "HEAD" (magit-list-local-branch-names))
nil nil 'magit-push-refspecs-history)
crm-default-separator t)
(run-hooks 'magit-credential-hook)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment