Remove rebase behaviour from pull.

This commit is contained in:
Phil Jackson 2010-09-01 22:27:39 +01:00
parent 70ee1c5301
commit 42fc3dac9c

View file

@ -2913,17 +2913,16 @@ update it."
(remote (magit-run-git-async "fetch" remote))
(t (magit-run-git-async "remote" "update"))))
(magit-define-command pull (&optional rebase)
"Run git pull against the current remote. With a prefix arg
will run pull with --rebase."
(interactive "P")
(magit-define-command pull ()
"Run git pull against the current remote."
(interactive)
(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"))
(apply 'magit-run-git-async `("pull" "-v" ,@(and rebase '("--rebase"))))))
(apply 'magit-run-git-async `("pull" "-v"))))
(eval-when-compile (require 'pcomplete))