Function: vc-git-pull
vc-git-pull is a byte-compiled function defined in vc-git.el.gz.
Signature
(vc-git-pull PROMPT)
Documentation
Pull changes into the current Git branch.
Normally, this runs "git pull", unless there is a configured push remote, in which case pull from that. If PROMPT is non-nil, prompt for the Git command to run.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-git.el.gz
(defun vc-git-pull (prompt)
"Pull changes into the current Git branch.
Normally, this runs \"git pull\", unless there is a configured push
remote, in which case pull from that.
If PROMPT is non-nil, prompt for the Git command to run."
(let ((remotes (vc-git--branch-remotes)))
(vc-git--pushpull "pull" prompt
(if-let* ((remote (cdr (assq 'push remotes)))
(slash-pos (string-search "/" remote)))
(list "--stat"
(substring remote 0 slash-pos)
(substring remote (1+ slash-pos)))
;; When (cdr (assq 'upstream remotes)) is of the
;; form "REMOTE/BRANCH", 'git pull' is equivalent
;; to 'git pull REMOTE BRANCH' per git-pull(1).
'("--stat")))))