When pulling, ask for branch if none is configured.
* magit.el (magit-pull): Here.
This commit is contained in:
parent
27389b9e5e
commit
9af5c9b707
1 changed files with 7 additions and 1 deletions
8
magit.el
8
magit.el
|
@ -2161,7 +2161,13 @@ in log buffer."
|
|||
|
||||
(defun magit-pull ()
|
||||
(interactive)
|
||||
(magit-run-git-async "pull" "-v"))
|
||||
(let* ((branch (magit-get-current-branch))
|
||||
(config-branch (and branch (magit-get "branch" branch "merge")))
|
||||
(merge-branch (or config-branch
|
||||
(magit-read-rev (format "Pull from")))))
|
||||
(if (and branch (not config-branch))
|
||||
(magit-set merge-branch "branch" branch "merge"))
|
||||
(magit-run-git-async "pull" "-v")))
|
||||
|
||||
(defun magit-read-remote (prompt def)
|
||||
(completing-read (if def
|
||||
|
|
Loading…
Reference in a new issue