libgit2

git_repository_init_init_options

Version:

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

Version of struct; pass GIT_REPOSITORY_INIT_OPTIONS_VERSION

Returns

int

Zero on success; -1 on failure.

Versions