libgit2

git_config_get_entry

Version:

Get the git_config_entry of a config variable.

Free the git_config_entry after use with git_config_entry_free().

Signature

int git_config_get_entry(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