Function: magit-dired-am-apply-patches
magit-dired-am-apply-patches is an autoloaded, interactive and
byte-compiled function defined in magit-dired.el.
Signature
(magit-dired-am-apply-patches REPO &optional ARG)
Documentation
In Dired, apply the marked (or next ARG) files as patches.
If inside a repository, then apply in that. Otherwise prompt for a repository.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-dired.el
;;;###autoload
(defun magit-dired-am-apply-patches (repo &optional arg)
"In Dired, apply the marked (or next ARG) files as patches.
If inside a repository, then apply in that. Otherwise prompt
for a repository."
(interactive (list (or (magit-toplevel)
(magit-read-repository t))
current-prefix-arg))
(let ((files (dired-get-marked-files nil arg nil nil t)))
(magit-status-setup-buffer repo)
(magit-am-apply-patches files)))