libgit2

git_config_init_backend

Version:

Initializes a git_config_backend with default values. Equivalent to creating an instance with GIT_CONFIG_BACKEND_INIT.

Signature

int git_config_init_backend(git_config_backend *backend, unsigned int version);

Parameters

unsigned int
In
version

Version of struct; pass GIT_CONFIG_BACKEND_VERSION

Returns

int

Zero on success; -1 on failure.

Versions