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
0 or an error code