Get the oid of a specified parent for a commit. This is different from git_commit_parent, which will attempt to load the parent commit from the ODB.
git_commit_parent
a previously loaded commit.
the position of the parent (from 0 to parentcount)
parentcount
the id of the parent, NULL on error.