Function: log-view-diff-changeset
log-view-diff-changeset is an interactive and byte-compiled function
defined in log-view.el.gz.
Signature
(log-view-diff-changeset BEG END)
Documentation
Get the diff between two revisions.
If the region is inactive or the mark is on the revision at point, get the diff between the revision at point and its previous revision. Otherwise, get the diff between the revisions where the region starts and ends.
Unlike log-view-diff this function shows the whole changeset,
including changes affecting other files than the currently
considered file(s).
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vc/log-view.el.gz
(defun log-view-diff-changeset (beg end)
"Get the diff between two revisions.
If the region is inactive or the mark is on the revision at
point, get the diff between the revision at point and its
previous revision. Otherwise, get the diff between the revisions
where the region starts and ends.
Unlike `log-view-diff' this function shows the whole changeset,
including changes affecting other files than the currently
considered file(s)."
(interactive
(list (if (use-region-p) (region-beginning) (point))
(if (use-region-p) (region-end) (point))))
(when (eq (vc-call-backend log-view-vc-backend 'revision-granularity) 'file)
(error "The %s backend does not support changeset diffs" log-view-vc-backend))
(let ((default-directory (vc-root-dir)))
(log-view-diff-common beg end t)))