Create a new in-memory git_commit.
The commit object must be manually filled using setter methods before it can be written to its repository.
pointer to the new commit
The repository where the object will reside
0 on success; error code otherwise