Function: diff-hl--use-git-index-base-p

diff-hl--use-git-index-base-p is a natively compiled function defined in diff-hl.el.

Signature

(diff-hl--use-git-index-base-p BACKEND)

Documentation

Whether diff-hl should use the Git index as the reference base.

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--use-git-index-base-p (backend)
  "Whether diff-hl should use the Git index as the reference base."
  (and (eq backend 'Git)
       (not diff-hl-reference-revision)
       (not diff-hl-show-staged-changes)))