Function: log-view-diff
log-view-diff is an interactive and byte-compiled function defined in
log-view.el.gz.
Signature
(log-view-diff 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-changeset, this function only shows the
part of the changeset which affected the currently considered
file(s).
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vc/log-view.el.gz
;;
;; diff
;;
(defun log-view-diff (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-changeset', this function only shows the
part of the changeset which affected the currently considered
file(s)."
(interactive
(list (if (use-region-p) (region-beginning) (point))
(if (use-region-p) (region-end) (point))))
(log-view-diff-common beg end))