Variable: vc-buffer-revision

vc-buffer-revision is a buffer-local variable defined in vc.el.gz.

Documentation

VCS revision to which this buffer's contents corresponds.

Lisp code which sets this should also set vc-buffer-overriding-fileset such that the buffer's local variables also specify a VC backend, rendering the value of this variable unambiguous. Should never be a symbolic name but always a revision number/hash.

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc.el.gz
(defvar-local vc-buffer-revision nil
  "VCS revision to which this buffer's contents corresponds.
Lisp code which sets this should also set `vc-buffer-overriding-fileset'
such that the buffer's local variables also specify a VC backend,
rendering the value of this variable unambiguous.
Should never be a symbolic name but always a revision number/hash.")