git_transport_new

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.

package extern (C) nothrow @nogc
int
git_transport_new

Parameters

out_ .git_transport**

The newly created transport (out)

owner libgit2_d.types.git_remote*

The git_remote which will own this transport

url const(char)*

The URL to connect to

Return Value

Type: int

0 or an error code

Meta