Function: magit-sequence-insert-am-patch
magit-sequence-insert-am-patch is a natively compiled function defined
in magit-sequence.el.
Signature
(magit-sequence-insert-am-patch TYPE PATCH FACE)
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-sequence.el
(defun magit-sequence-insert-am-patch (type patch face)
(magit-insert-section (file patch)
(let ((title
(with-temp-buffer
(insert-file-contents patch nil nil 4096)
(unless (re-search-forward "^Subject: " nil t)
(goto-char (point-min)))
(buffer-substring (point) (line-end-position)))))
(insert (propertize type 'font-lock-face face)
?\s (propertize (file-name-nondirectory patch)
'font-lock-face 'magit-hash)
?\s title
?\n))))