Function: magit-subtree-add-commit
magit-subtree-add-commit is an autoloaded, interactive and
byte-compiled function defined in magit-subtree.el.
Signature
(magit-subtree-add-commit PREFIX COMMIT ARGS)
Documentation
Add COMMIT as a new subtree at PREFIX.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-subtree.el
;;;###autoload
(defun magit-subtree-add-commit (prefix commit args)
"Add COMMIT as a new subtree at PREFIX."
(interactive
(list (magit-subtree-prefix 'magit-subtree-import "Add subtree")
(magit-read-string-ns "Commit")
(magit-subtree-arguments 'magit-subtree-import)))
(magit-git-subtree "add" prefix args commit))