git_config_foreach

Perform an operation on each config variable.

The callback receives the normalized name and value of each variable in the config backend, and the data pointer passed to this function. If the callback returns a non-zero value, the function stops iterating and returns that value to the caller.

The pointers passed to the callback are only valid as long as the iteration is ongoing.

extern (C) nothrow @nogc
int
git_config_foreach

Parameters

cfg const(libgit2_d.types.git_config)*

where to get the variables from

callback .git_config_foreach_cb

the function to call on each variable

payload void*

the data to pass to the callback

Return Value

Type: int

0 on success, non-zero callback return value, or error code

Meta