libgit2

git_packbuilder_insert_recur

Version:

Recursively insert an object and its referenced objects

Insert the object as well as any object it references.

Signature

int git_packbuilder_insert_recur(git_packbuilder *pb, const git_oid *id, const char *name);

Parameters

In
pb

the packbuilder

In
id

the id of the root object to insert

const char *
In
name

optional name for the object

Returns

int

0 or an error code

Versions