libgit2

git_config_backend_from_values

Version:

Create an in-memory configuration backend from a list of name/value pairs.

Signature

int git_config_backend_from_values(git_config_backend **out, const char **values, size_t len, git_config_backend_memory_options *opts);

Parameters

In
out

the new backend

const char **
In
values

the configuration values to set (in "key=value" format)

size_t
In
len

the length of the values array

In
opts

the options to initialize this backend with, or NULL

Returns

int

0 on success or an error code

Versions