libgit2

git_refdb_init_backend

Version:

Initializes a git_refdb_backend with default values. Equivalent to creating an instance with GIT_REFDB_BACKEND_INIT.

Signature

int git_refdb_init_backend(git_refdb_backend *backend, unsigned int version);

Parameters

In
backend

the git_refdb_backend struct to initialize

unsigned int
In
version

Version of struct; pass GIT_REFDB_BACKEND_VERSION

Returns

int

Zero on success; -1 on failure.

Versions