libgit2

git_commit_add_parent

Version:

Add a new parent commit to an existing commit

Signature

void git_commit_add_parent(git_commit *commit, git_commit *new_parent);

Parameters

In
commit

the commit object

In
new_parent

the new commit which will be a parent

Versions