libgit2

git_transport_new

Version:

Function to use to create a transport from a URL. The transport database is scanned to find a transport that implements the scheme of the URI (i.e. git:// or http://) and a transport object is returned to the caller.

Signature

int git_transport_new(git_transport **out, git_remote *owner, const char *url);

Parameters

In
out

The newly created transport (out)

In
owner

The git_remote which will own this transport

const char *
In
url

The URL to connect to

Returns

int

0 or an error code

Versions