Function: vc-diff
vc-diff is an autoloaded, interactive and byte-compiled function
defined in vc.el.gz.
Signature
(vc-diff &optional HISTORIC NOT-ESSENTIAL FILESET)
Documentation
Display diffs between file revisions.
Normally this compares the currently selected fileset with their working revisions. With a prefix argument HISTORIC, it reads two revision designators specifying which revisions to compare.
Optional argument NOT-ESSENTIAL non-nil means it is okay to say no to saving the buffer. Optional argument FILESET, if non-nil, overrides the fileset.
Probably introduced at or before Emacs version 20.3.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc.el.gz
;;;###autoload
(defun vc-diff (&optional historic not-essential fileset)
"Display diffs between file revisions.
Normally this compares the currently selected fileset with their
working revisions. With a prefix argument HISTORIC, it reads two revision
designators specifying which revisions to compare.
Optional argument NOT-ESSENTIAL non-nil means it is okay to say no to
saving the buffer.
Optional argument FILESET, if non-nil, overrides the fileset."
(interactive (list current-prefix-arg t))
(if historic
(call-interactively 'vc-version-diff)
(let ((fileset (or fileset (vc-deduce-fileset t))))
(vc-buffer-sync-fileset fileset not-essential)
(vc-diff-internal vc-allow-async-diff fileset nil nil
(called-interactively-p 'interactive)))))