libgit2

git_indexer_options_init

Version:

Initializes a git_indexer_options with default values. Equivalent to creating an instance with GIT_INDEXER_OPTIONS_INIT.

Signature

int git_indexer_options_init(git_indexer_options *opts, unsigned int version);

Parameters

In
opts

the git_indexer_options struct to initialize.

unsigned int
In
version

Version of struct; pass GIT_INDEXER_OPTIONS_VERSION

Returns

int

Zero on success; -1 on failure.

Versions