libgit2

git_submodule_update_init_options

Version:

Initializes a git_submodule_update_options with default values. Equivalent to creating an instance with GIT_SUBMODULE_UPDATE_OPTIONS_INIT.

Signature

int git_submodule_update_init_options(git_submodule_update_options *opts, unsigned int version);

Parameters

In
opts

The git_submodule_update_options instance to initialize.

unsigned int
In
version

Version of struct; pass GIT_SUBMODULE_UPDATE_OPTIONS_VERSION

Returns

int

Zero on success; -1 on failure.

Versions