libgit2

git_commit_parentcount

Version:

Get the number of parents of this commit

Signature

unsigned int git_commit_parentcount(git_commit *commit);

Parameters

git_commit *
In
commit

a previously loaded commit.

Returns

unsigned int

integer of count of parents

Versions