libgit2

git_packbuilder_insert_commit

Version:

Insert a commit object

This will add a commit as well as the completed referenced tree.

Signature

int git_packbuilder_insert_commit(git_packbuilder *pb, const git_oid *id);

Parameters

In
pb

The packbuilder

In
id

The oid of the commit

Returns

int

0 or an error code

Versions