libgit2

git_remote_ready_cb

Version:

Callback invoked immediately before we attempt to connect to the given url. Callers may change the URL before the connection by calling git_remote_set_instance_url in the callback.

Signature

typedef int git_remote_ready_cb(git_remote *remote, int direction, void *payload);

Parameters

In
remote

The remote to be connected

int
In
direction

GIT_DIRECTION_FETCH or GIT_DIRECTION_PUSH

void *
In
payload

Payload provided by the caller

Returns

int

0 on success, or an error

Versions