Function: magit-diff--get-hunk-syntax
magit-diff--get-hunk-syntax is a natively compiled function defined in
magit-diff.el.
Signature
(magit-diff--get-hunk-syntax HUNK SIDE REV FILE)
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-diff.el
(defun magit-diff--get-hunk-syntax (hunk side rev file)
(let ((args (magit-diff--get-hunk-text hunk (eq side 'old))))
(unless (listp (car (cadr args))) ; TODO Support unmerged changes.
(with-current-buffer (magit-find-file-noselect rev file t t)
(save-excursion
(apply #'diff-syntax-fontify-props nil args))))))