Function: magit-no-commit-p
magit-no-commit-p is a byte-compiled function defined in magit-git.el.
Signature
(magit-no-commit-p)
Documentation
Return t if there is no commit in the current Git repository.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
;;; Predicates
(defun magit-no-commit-p ()
"Return t if there is no commit in the current Git repository."
(not (magit-rev-verify "HEAD")))