Function: vc-root-diff-incoming

vc-root-diff-incoming is an autoloaded, interactive and byte-compiled function defined in vc.el.gz.

Signature

(vc-root-diff-incoming &optional UPSTREAM-LOCATION)

Documentation

Report diff of all changes that would be pulled from UPSTREAM-LOCATION.

When unspecified UPSTREAM-LOCATION is the place C-x v + (vc-update) would pull from. When called interactively with a prefix argument, prompt for UPSTREAM-LOCATION. In some version control systems UPSTREAM-LOCATION can be a remote branch name.

See vc-use-incoming-outgoing-prefixes regarding giving this command a global binding.

View in manual

Probably introduced at or before Emacs version 31.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc.el.gz
;;;###autoload
(defun vc-root-diff-incoming (&optional upstream-location)
  "Report diff of all changes that would be pulled from UPSTREAM-LOCATION.
When unspecified UPSTREAM-LOCATION is the place \\[vc-update] would pull
from.  When called interactively with a prefix argument, prompt for
UPSTREAM-LOCATION.  In some version control systems UPSTREAM-LOCATION
can be a remote branch name.

See `vc-use-incoming-outgoing-prefixes' regarding giving this command a
global binding."
  (interactive (list (vc--maybe-read-upstream-location)))
  (vc--with-backend-in-rootdir "VC root-diff"
    (vc-diff-incoming upstream-location `(,backend (,rootdir)))))