libgit2

git_packbuilder_foreach

Version:

Create the new pack and pass each object to the callback

Signature

int git_packbuilder_foreach(git_packbuilder *pb, git_packbuilder_foreach_cb cb, void *payload);

Parameters

In
pb

the packbuilder

In
cb

the callback to call with each packed object's buffer

void *
In
payload

the callback's data

Returns

int

0 or an error code

Versions