libgit2

git_push_update_reference_cb

Version:

Callback used to inform of the update status from the remote.

Called for each updated reference on push. If status is not NULL, the update was rejected by the remote server and status contains the reason given.

Signature

typedef int git_push_update_reference_cb(const char *refname, const char *status, void *data);

Parameters

const char *
In
refname

refname specifying to the remote ref

const char *
In
status

status message sent from the remote

void *
In
data

data provided by the caller

Returns

int

0 on success, otherwise an error

Versions