Function: magit-diff--get-hunk-syntax
magit-diff--get-hunk-syntax is a byte-compiled function defined in
magit-diff.el.
Signature
(magit-diff--get-hunk-syntax HUNK SIDE REV FILE)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/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))))))