libgit2

git_midx_writer_options_init

Version:

Initialize git_midx_writer_options structure

Initializes a git_midx_writer_options with default values. Equivalent to creating an instance with GIT_MIDX_WRITER_OPTIONS_INIT.

Signature

int git_midx_writer_options_init(git_midx_writer_options *opts, unsigned int version);

Parameters

In
opts

The git_midx_writer_options struct to initialize.

unsigned int
In
version

The struct version; pass GIT_MIDX_WRITER_OPTIONS_VERSION.

Returns

int

Zero on success; -1 on failure.

Versions