Function: magit-cherry-apply

magit-cherry-apply is an interactive and natively 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

magit-mode-map a

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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))))