libgit2

git_config_get_entry

Version:

Get the git_config_entry of a config variable.

The git_config_entry is owned by the config and should not be freed by the user.

Signature

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

Parameters

In
out

pointer to the variable git_config_entry

In
cfg

where to look for the variable

const char *
In
name

the variable's name

Returns

int

0 or an error code

Versions