diff options
| author | Glen Choo <chooglen@google.com> | 2023-06-28 19:26:23 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-06-28 14:06:39 -0700 |
| commit | 6021e1d1580169532512772afbb86996f717f4ae (patch) | |
| tree | a1719587ba91dbeb5f8535bf6c7e121c36d587a2 /diff.c | |
| parent | config: add ctx arg to config_fn_t (diff) | |
| download | git-6021e1d1580169532512772afbb86996f717f4ae.tar.gz git-6021e1d1580169532512772afbb86996f717f4ae.zip | |
config.c: pass ctx in configsets
Pass config_context to config callbacks in configset_iter(), trivially
setting the .kvi member to the cached key_value_info. Then, in config
callbacks that are only used with configsets, use the .kvi member to
replace calls to current_config_*(), and delete current_config_line()
because it has no remaining callers.
This leaves builtin/config.c and config.c as the only remaining users of
current_config_*().
Signed-off-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions
