libgit2

git_push_transfer_progress_cb

Version:

Push network progress notification callback.

Signature

typedef int git_push_transfer_progress_cb(unsigned int current, unsigned int total, size_t bytes, void *payload);

Parameters

unsigned int
In
current

The number of objects pushed so far

unsigned int
In
total

The total number of objects to push

size_t
In
bytes

The number of bytes pushed

void *
In
payload

The user-specified payload callback

Returns

int

0 or an error code to stop the transfer

Versions