libgit2

git_config_get_multivar

Version:

Get each value of a multivar.

The callback will be called on each variable found

Signature

int git_config_get_multivar(git_config *cfg, const char *name, const char *regexp, int (*)(const char *, void *) fn, void *data);

Parameters

In
cfg

where to look for the variable

const char *
In
name

the variable's name

const char *
In
regexp

regular expression to filter which variables we're interested in. Use NULL to indicate all

int (*)(const char *, void *)
In
fn

the function to be called on each value of the variable

void *
In
data

opaque pointer to pass to the callback

Returns

int

Versions