libgit2

git_merge_init_options

Version:

Initialize git_merge_options structure

Initializes a git_merge_options with default values. Equivalent to creating an instance with GIT_MERGE_OPTIONS_INIT.

Signature

int git_merge_init_options(git_merge_options *opts, unsigned int version);

Parameters

In
opts

The git_merge_options struct to initialize.

unsigned int
In
version

The struct version; pass GIT_MERGE_OPTIONS_VERSION.

Returns

int

Zero on success; -1 on failure.

Versions