libgit2

git_packbuilder_set_callbacks

Version:

Set the callbacks for a packbuilder

Signature

int git_packbuilder_set_callbacks(git_packbuilder *pb, git_packbuilder_progress progress_cb, void *progress_cb_payload);

Parameters

In
pb

The packbuilder object

In
progress_cb

Function to call with progress information during pack building. Be aware that this is called inline with pack building operations, so performance may be affected.

void *
In
progress_cb_payload

Payload for progress callback.

Returns

int

0 or an error code

Versions