config.c: plumb the_reader through callbacks
commita798a56c8aea492a2078c40e16a4a46f3fea5133
authorGlen Choo <chooglen@google.com>
Tue, 28 Mar 2023 17:51:50 +0000 (28 17:51 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Mar 2023 20:03:27 +0000 (28 13:03 -0700)
treeae911051c63fce0714c9b5979d9ae0b6b6eb87e6
parent0c60285147441fbf93e435b4b022fe362b616a5a
config.c: plumb the_reader through callbacks

The remaining references to "cf_global" are in config callback
functions. Remove them by plumbing "struct config_reader" via the
"*data" arg.

In both of the callbacks here, we are only reading from
"reader->source". So in the long run, if we had a way to expose readonly
information from "reader->source" (probably in the form of "struct
key_value_info"), we could undo this patch (i.e. remove "struct
config_reader" fom "*data").

Signed-off-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c