Function: diff-hl-revert-hunk

diff-hl-revert-hunk is an interactive and natively compiled function defined in diff-hl.el.

Signature

(diff-hl-revert-hunk)

Documentation

Revert the diff hunk with changes at or above the point.

Key Bindings

diff-hl-command-map n diff-hl-mode-map C-x v n

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-revert-hunk ()
  "Revert the diff hunk with changes at or above the point."
  (interactive)
  (with-current-buffer (current-buffer)
    (diff-hl-revert-hunk-1)))