libgit2

git_commit_add_parent

Version:

Add a new parent commit to an existing commit

Signature

int 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

Returns

int

0 on success; error code otherwise

Versions