Function: magit-commit-p
magit-commit-p is a byte-compiled function defined in magit-git.el.
Signature
(magit-commit-p REV)
Documentation
Return non-nil if REV can be dereferences as a commit.
Otherwise return nil. Use magit-commit-oid if you actually need
the oid; eventually this function will return t instead of the oid,
as it currently does for backward compatibility.
Aliases
magit-rev-verify-commit (obsolete since Magit 4.6.0)
magit-rev-hash (obsolete since Magit 4.6.0)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-commit-p (rev)
"Return non-nil if REV can be dereferences as a commit.
Otherwise return nil. Use `magit-commit-oid' if you actually need
the oid; eventually this function will return t instead of the oid,
as it currently does for backward compatibility."
;; TODO Return t instead of the oid.
(magit-rev-verify (magit--rev-dereference rev)))