Function: diff-hl-head-revision
diff-hl-head-revision is a natively compiled function defined in
diff-hl.el.
Signature
(diff-hl-head-revision BACKEND)
Source Code
;; Defined in /nix/store/cfz56rl3lp066226i0bmmgiicls3gcq7-emacs-packages-deps/share/emacs/site-lisp/elpa/diff-hl-20261001.135/diff-hl.el
(defun diff-hl-head-revision (backend)
(or (assoc-default backend diff-hl-head-revision-alist)
;; It's usually cached already (e.g. for mode-line).
;; So this is basically an optimization for rare cases.
(vc-working-revision (diff-hl--buffer-file-name) backend)))