libgit2

git_transport_init

Version:

Initializes a git_transport with default values. Equivalent to creating an instance with GIT_TRANSPORT_INIT.

Signature

int git_transport_init(git_transport *opts, unsigned int version);

Parameters

In
opts

the git_transport struct to initialize

unsigned int
In
version

Version of struct; pass GIT_TRANSPORT_VERSION

Returns

int

Zero on success; -1 on failure.

Versions