Commit cb4a5123 authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-pull-read-args: remove function

parent 9398cddb
......@@ -164,21 +164,18 @@ then read the remote."
;;;###autoload
(defun magit-pull-current (source args)
"Fetch and merge into current branch."
(interactive (magit-pull-read-args t))
(interactive (list (or (magit-get-tracked-branch)
(magit-read-remote-branch "Pull" nil nil nil t))
(magit-pull-arguments)))
(magit-git-pull source args))
;;;###autoload
(defun magit-pull (source args)
"Fetch from another repository and merge a fetched branch."
(interactive (magit-pull-read-args))
(interactive (list (magit-read-remote-branch "Pull" nil nil nil t)
(magit-pull-arguments)))
(magit-git-pull source args))
(defun magit-pull-read-args (&optional use-upstream)
(list (let ((source (magit-get-tracked-branch)))
(or (and use-upstream source)
(magit-read-remote-branch "Pull" nil source nil t)))
(magit-pull-arguments)))
;;; Push
;;;###autoload (autoload 'magit-push-popup "magit-remote" nil t)
......
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