Function: magit-commit-create
magit-commit-create is an interactive and natively compiled function
defined in magit-commit.el.
Signature
(magit-commit-create &optional ARGS)
Documentation
Create a new commit.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-commit.el
;;; Commands
;;;; Create
;;;###autoload
(defun magit-commit-create (&optional args)
"Create a new commit."
(interactive (list (magit-commit-arguments)))
(cond ((member "--all" args)
(setq this-command 'magit-commit--all))
((member "--allow-empty" args)
(setq this-command 'magit-commit--allow-empty)))
(when (setq args (magit-commit-assert args))
(let ((default-directory (magit-toplevel)))
(magit-run-git-with-editor "commit" args))))