MCPcopy Index your code
hub / github.com/git/git / configset_iter

Function configset_iter

config.c:1654–1673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1652}
1653
1654static void configset_iter(struct config_set *set, config_fn_t fn, void *data)
1655{
1656 int value_index;
1657 struct string_list *values;
1658 struct config_set_element *entry;
1659 struct configset_list *list = &set->list;
1660 struct config_context ctx = CONFIG_CONTEXT_INIT;
1661
1662 for (size_t i = 0; i < list->nr; i++) {
1663 entry = list->items[i].e;
1664 value_index = list->items[i].value_index;
1665 values = &entry->value_list;
1666
1667 ctx.kvi = values->items[value_index].util;
1668 if (fn(entry->key, values->items[value_index].string, &ctx, data) < 0)
1669 git_die_config_linenr(entry->key,
1670 ctx.kvi->filename,
1671 ctx.kvi->linenr);
1672 }
1673}
1674
1675void read_early_config(struct repository *repo, config_fn_t cb, void *data)
1676{

Callers 2

repo_configFunction · 0.85
git_protected_configFunction · 0.85

Calls 1

git_die_config_linenrFunction · 0.85

Tested by

no test coverage detected