libgit2

git_push_status_foreach

Version:

Call callback `cb' on each status

For each of the updated references, we receive a status report in the form of ok refs/heads/master or ng refs/heads/master <msg>. msg != NULL means the reference has not been updated for the given reason.

Signature

int git_push_status_foreach(git_push *push, int (*)(const char *, const char *, void *) cb, void *data);

Parameters

In
push

The push object

int (*)(const char *, const char *, void *)
In
cb

The callback to call on each object

void *
In
data

Returns

int

0 on success, GIT_EUSER on non-zero callback, or error code

Versions