Function: magit-commit-p
magit-commit-p is a natively 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-hash (obsolete since Magit 4.6.0)
magit-rev-verify-commit (obsolete since Magit 4.6.0)
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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)))