Function: magit-commit-tree

magit-commit-tree is a byte-compiled function defined in magit-git.el.

Signature

(magit-commit-tree MESSAGE &optional TREE &rest PARENTS)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-commit-tree (message &optional tree &rest parents)
  (magit-git-string "commit-tree" "--no-gpg-sign" "-m" message
                    (mapcan (##list "-p" %) (delq nil parents))
                    (or tree
                        (magit-git-string "write-tree")
                        (error "Cannot write tree"))))