Lookup a commit object from a repository, given a prefix of its
identifier (short id).
The returned object should be released with git_commit_free when no
longer needed.
@see git_object_lookup_prefix
@param commit pointer to the looked up commit
@param repo the repo to use when locating the commit.
@param id identity of the commit to locate. If the object is
an annotated tag it will be peeled back to the commit.
@param len the length of the short identifier
@return 0 or an error code
Lookup a commit object from a repository, given a prefix of its identifier (short id).
The returned object should be released with git_commit_free when no longer needed.
@see git_object_lookup_prefix
@param commit pointer to the looked up commit @param repo the repo to use when locating the commit. @param id identity of the commit to locate. If the object is an annotated tag it will be peeled back to the commit. @param len the length of the short identifier @return 0 or an error code