Function: magit-no-commit-p

magit-no-commit-p is a natively 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 /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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")))