Lookup a commit object from a repository.
The returned object should be released with git_commit_free
when no
longer needed.
identity of the commit to locate. If the object is an annotated tag it will be peeled back to the commit.
0 or an error code