libgit2

git_config_backend_from_string

Version:

Create an in-memory configuration backend from a string in standard git configuration file format.

Signature

int git_config_backend_from_string(git_config_backend **out, const char *cfg, size_t len, git_config_backend_memory_options *opts);

Parameters

In
out

the new backend

const char *
In
cfg

the configuration that is to be parsed

size_t
In
len

the length of the string pointed to by cfg

In
opts

the options to initialize this backend with, or NULL

Returns

int

0 on success or an error code

Versions