Function: diff-hl-ediff-current-hunk
diff-hl-ediff-current-hunk is an interactive and natively compiled
function defined in diff-hl.el.
Signature
(diff-hl-ediff-current-hunk)
Documentation
Run Ediff against current comparison base. Jump to hunk at point.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/cfz56rl3lp066226i0bmmgiicls3gcq7-emacs-packages-deps/share/emacs/site-lisp/elpa/diff-hl-20261001.135/diff-hl.el
;;;###autoload
(defun diff-hl-ediff-current-hunk ()
"Run Ediff against current comparison base. Jump to hunk at point."
(interactive)
(require 'ediff)
(let* ((pos (point))
(file (or buffer-file-name
(and-let* ((base (buffer-base-buffer)))
(buffer-file-name base))))
(refbuf (diff-hl--ediff-reference-buffer file))
(startup
(list
(lambda ()
(unless (zerop ediff-number-of-differences)
(ediff-jump-to-difference
(max 1 (ediff-diff-at-point 'B pos))))))))
(ediff-buffers refbuf (current-buffer) startup)))