Gets the parents of the next commit, given the current repository state. Generally, this is the HEAD commit, except when performing a merge, in which case it is two or more commits.
a git_commitarray that will contain the commit parents
git_commitarray
the repository
0 or an error code