git_config_backend_foreach_match

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

This behaves like git_config_foreach_match except that only config entries from the given backend entry are enumerated.

The regular expression is applied case-sensitively on the normalized form of the variable name: the section and variable parts are lower-cased. The subsection is left unchanged.

extern (C) nothrow @nogc
int
git_config_backend_foreach_match

Parameters

backend libgit2_d.types.git_config_backend*

where to get the variables from

regexp const(char)*

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

callback .git_config_foreach_cb

the function to call on each variable

payload void*

the data to pass to the callback

Meta