Lookup a commit object from a repository, given a prefix of its identifier (short id).
identity of the commit to locate. If the object is an annotated tag it will be peeled back to the commit.
the length of the short identifier
GIT_SUCCESS or an error code