libgit2

git_push_set_callbacks

Version:

Set the callbacks for a push

Signature

int git_push_set_callbacks(git_push *push, git_packbuilder_progress pack_progress_cb, void *pack_progress_cb_payload, git_push_transfer_progress transfer_progress_cb, void *transfer_progress_cb_payload);

Parameters

In
push

The push object

In
pack_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
pack_progress_cb_payload

Payload for the pack progress callback.

In
transfer_progress_cb

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

void *
In
transfer_progress_cb_payload

Payload for the network progress callback.

Returns

int

0 or an error code

Versions