libgit2

git_remote_set_transport

Version:

Sets a custom transport factory for the remote. The caller can use this function to override the transport used for this remote when performing network operations.

Signature

int git_remote_set_transport(git_remote *remote, git_transport_cb transport_cb, void *payload);

Parameters

In
remote

the remote to configure

In
transport_cb

the function to use to create a transport

void *
In
payload

opaque parameter passed to transport_cb

Returns

int

0 or an error code

Versions