libgit2

git_commit_create_ext_options_init

Version:

Initialize git_commit_create_ext_options structure

Initialize a git_commit_create_ext_options with default values. Equivalent to creating an instance with GIT_COMMIT_CREATE_EXT_OPTIONS_INIT.

Signature

int git_commit_create_ext_options_init(git_commit_create_ext_options *opts, unsigned int version);

Parameters

unsigned int
In
version

The struct version; pass GIT_COMMIT_CREATE_EXT_OPTIONS_VERSION

Returns

int

0 on success or -1 on failure.

Versions