libgit2

git_repository_init_init_options

Version:

Initialize git_repository_init_options structure

Initializes a git_repository_init_options with default values. Equivalent to creating an instance with GIT_REPOSITORY_INIT_OPTIONS_INIT.

Signature

int git_repository_init_init_options(git_repository_init_options *opts, unsigned int version);

Parameters

unsigned int
In
version

The struct version; pass GIT_REPOSITORY_INIT_OPTIONS_VERSION.

Returns

int

Zero on success; -1 on failure.

Versions