config.c: remove config_reader from configsets
commitf6c213a0cbf7071c845eef0afa4bc5f9c4883e51
authorGlen Choo <chooglen@google.com>
Wed, 28 Jun 2023 19:26:28 +0000 (28 19:26 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Jun 2023 21:06:40 +0000 (28 14:06 -0700)
treed89537bd0a5e020d01770c26a33dbeac2feb17e1
parent8868b1ebfb8274a3ef90e1ba69ed45be94f6c3fb
config.c: remove config_reader from configsets

Remove the last usage of "struct config_reader" from configsets by
copying the "kvi" arg instead of recomputing "kvi" from
config_reader.source. Since we no longer need to pass both "struct
config_reader" and "struct config_set" in a single "void *cb", remove
"struct configset_add_data" too.

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