Function: magit-cherry-apply

magit-cherry-apply is an autoloaded, interactive and byte-compiled function defined in magit-sequence.el.

Signature

(magit-cherry-apply COMMITS &optional ARGS)

Documentation

Apply the changes in COMMITS but do not commit them.

Prompt for a commit, defaulting to the commit at point. If the region selects multiple commits, then apply all of them, without prompting.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-sequence.el
;;;###autoload
(defun magit-cherry-apply (commits &optional args)
  "Apply the changes in COMMITS but do not commit them.
Prompt for a commit, defaulting to the commit at point.  If
the region selects multiple commits, then apply all of them,
without prompting."
  (interactive (magit-cherry-pick-read-args "Apply changes from commit"))
  (magit--cherry-pick commits (cons "--no-commit" (remove "--ff" args))))