libgit2

git_apply_options_init

Version:

Initialize git_apply_options structure

Initialize a git_apply_options with default values. Equivalent to creating an instance with GIT_APPLY_OPTIONS_INIT.

Signature

int git_apply_options_init(git_apply_options *opts, unsigned int version);

Parameters

In
opts

The git_apply_options struct to initialize.

unsigned int
In
version

The struct version; pass GIT_APPLY_OPTIONS_VERSION

Returns

int

0 on success or -1 on failure.

Versions