Function: vc-root-diff-outgoing
vc-root-diff-outgoing is an autoloaded, interactive and byte-compiled
function defined in vc.el.gz.
Signature
(vc-root-diff-outgoing &optional UPSTREAM-LOCATION)
Documentation
Report diff of all changes that would be pushed to UPSTREAM-LOCATION.
When unspecified UPSTREAM-LOCATION is the place C-x v P (vc-push) would push
to. When called interactively with a prefix argument, prompt for
UPSTREAM-LOCATION. In some version control systems UPSTREAM-LOCATION
can be a remote branch name.
This command is like vc-root-diff-outgoing-base except that it does
not include uncommitted changes.
See vc-use-incoming-outgoing-prefixes regarding giving this command a
global binding.
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-outgoing (&optional upstream-location)
"Report diff of all changes that would be pushed to UPSTREAM-LOCATION.
When unspecified UPSTREAM-LOCATION is the place \\[vc-push] would push
to. When called interactively with a prefix argument, prompt for
UPSTREAM-LOCATION. In some version control systems UPSTREAM-LOCATION
can be a remote branch name.
This command is like `vc-root-diff-outgoing-base' except that it does
not include uncommitted changes.
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-outgoing upstream-location `(,backend (,rootdir)))))