Variable: diff-hl-highlight-revert-hunk-function
diff-hl-highlight-revert-hunk-function is a customizable variable
defined in diff-hl.el.
Value
diff-hl-revert-narrow-to-hunk
Documentation
Function to emphasize the current hunk in diff-hl-revert-hunk.
The function is called at the beginning of the hunk and is passed the end position as its only argument.
Source Code
;; Defined in /nix/store/cfz56rl3lp066226i0bmmgiicls3gcq7-emacs-packages-deps/share/emacs/site-lisp/elpa/diff-hl-20261001.135/diff-hl.el
(defcustom diff-hl-highlight-revert-hunk-function
#'diff-hl-revert-narrow-to-hunk
"Function to emphasize the current hunk in `diff-hl-revert-hunk'.
The function is called at the beginning of the hunk and is passed
the end position as its only argument."
:type '(choice (const :tag "Do nothing" ignore)
(const :tag "Highlight the first column"
diff-hl-revert-highlight-first-column)
(const :tag "Narrow to the hunk"
diff-hl-revert-narrow-to-hunk)))