libgit2

git_push_negotiation

Version:

Callback used to inform of upcoming updates.

Signature

typedef int git_push_negotiation(const git_push_update **updates, size_t len, void *payload);

Parameters

In
updates

an array containing the updates which will be sent as commands to the destination.

size_t
In
len

number of elements in updates

void *
In
payload

Payload provided by the caller

Returns

int

0 or an error code to stop the push

Versions