libgit2

git_config_get_string

Version:

Get the value of a string config variable.

The string is owned by the variable and should not be freed by the user.

Signature

int git_config_get_string(git_config *cfg, const char *name, const char **out);

Parameters

In
cfg

where to look for the variable

const char *
In
name

the variable's name

const char **
In
out

pointer to the variable's value

Returns

int

GIT_SUCCESS or an error code

Versions