Function: magit-diff-hunk-region-header

magit-diff-hunk-region-header is a natively compiled function defined in magit-diff.el.

Signature

(magit-diff-hunk-region-header SECTION)

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-diff.el
(defun magit-diff-hunk-region-header (section)
  (let ((patch (magit-diff-hunk-region-patch section)))
    (string-match "\n" patch)
    (substring patch 0 (1- (match-end 0)))))