libgit2

git_merge_file_input_init

Version:

Initializes a git_merge_file_input with default values. Equivalent to creating an instance with GIT_MERGE_FILE_INPUT_INIT.

Signature

int git_merge_file_input_init(git_merge_file_input *opts, unsigned int version);

Parameters

In
opts

the git_merge_file_input instance to initialize.

unsigned int
In
version

the version of the struct; you should pass GIT_MERGE_FILE_INPUT_VERSION here.

Returns

int

Zero on success; -1 on failure.

Versions