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

git_commit *
In
commit

a previously loaded commit.

unsigned int
In
n

the position of the entry

Returns

git_commit *

a pointer to the commit; NULL if out of bounds

Versions