libgit2

git_config_iterator_new

Version:

Iterate over all the config variables

Use git_config_next to advance the iteration and git_config_iterator_free when done.

Signature

int git_config_iterator_new(git_config_iterator **out, const git_config *cfg);

Parameters

In
out

pointer to store the iterator

In
cfg

where to get the variables from

Returns

int

0 or an error code.

Versions