Function: vc-version-diff
vc-version-diff is an autoloaded, interactive and byte-compiled
function defined in vc.el.gz.
Signature
(vc-version-diff FILES REV1 REV2)
Documentation
Report diffs between revisions REV1 and REV2 in the repository history.
This compares two revisions of the current fileset. If REV1 is nil, it defaults to the previous revision, i.e. revision before the last commit. If REV2 is nil, it defaults to the work tree, i.e. the current state of each file in the fileset.
Probably introduced at or before Emacs version 20.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc.el.gz
;;;###autoload
(defun vc-version-diff (_files rev1 rev2)
"Report diffs between revisions REV1 and REV2 in the repository history.
This compares two revisions of the current fileset.
If REV1 is nil, it defaults to the previous revision, i.e. revision
before the last commit.
If REV2 is nil, it defaults to the work tree, i.e. the current
state of each file in the fileset."
(interactive (vc-diff-build-argument-list-internal))
;; All that was just so we could do argument completion!
(when (and (not rev1) rev2)
(error "Not a valid revision range"))
;; Yes, it's painful to call (vc-deduce-fileset) again. Alas, the
;; placement rules for (interactive) don't actually leave us a choice.
(vc-diff-internal vc-allow-async-diff (vc-deduce-fileset t) rev1 rev2
(called-interactively-p 'interactive)))