libgit2

git_config_backend_foreach_match

Version:

Perform an operation on each config variable in given config backend matching a regular expression.

This behaviors like git_config_foreach_match except instead of all config entries it just enumerates through the given backend entry.

Signature

int git_config_backend_foreach_match(git_config_backend *backend, const char *regexp, int (*)(const git_config_entry *, void *) fn, void *data);

Parameters

In
backend

where to get the variables from

const char *
In
regexp

regular expression to match against config names (can be NULL)

int (*)(const git_config_entry *, void *)
In
fn
void *
In
data

Returns

int

Versions