Get the specified parent of the commit.
Pointer where to store the parent commit
a previously loaded commit.
the position of the parent (from 0 to parentcount)
parentcount
GIT_SUCCESS or an error code