libgit2

git_commit_parent

Version:

Get the specified parent of the commit.

Signature

git_commit *git_commit_parent(git_commit *commit, unsigned int n);

Parameters

In
commit

a previously loaded commit.

unsigned int
In
n

the position of the entry

Returns

a pointer to the commit; NULL if out of bounds

Versions