Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> writes: > Introduce a repo_config_kvi(), which is a repo_config() which calls a > "config_kvi_fn_t", rather than the "config_fn_t" that repo_config() > uses. > > This allows us to pass along the "struct key_value_info *" directly, > rather than having the callback grab it from the global > "current_config_kvi" that we've been maintaining in > "configset_iter()". Nice that you can plumb kvi through the callchain but without having to touch the end-user-visible callback data *cb or the function signature of the cllaback functions. > This leaves the other current_config_*() functions. Subsequent commits > will need to deal with those.