libgit2

git_fetch_init_options

Version:

Initializes a git_fetch_options with default values. Equivalent to creating an instance with GIT_FETCH_OPTIONS_INIT.

Signature

int git_fetch_init_options(git_fetch_options *opts, unsigned int version);

Parameters

In
opts

the git_push_options instance to initialize.

unsigned int
In
version

the version of the struct; you should pass GIT_FETCH_OPTIONS_VERSION here.

Returns

int

Zero on success; -1 on failure.

Versions