Creates a git_annotated_commit from the given reference. The resulting git_annotated_commit must be freed with git_annotated_commit_free.
git_annotated_commit
git_annotated_commit_free
pointer to store the git_annotated_commit result in
repository that contains the given reference
reference to use to lookup the git_annotated_commit
0 on success or error code