config: add kvi.path, use it to evaluate includes
commit908857a9f8a63c7d8fee1bd5f52b1aa1cf3434de
authorGlen Choo <chooglen@google.com>
Wed, 28 Jun 2023 19:26:29 +0000 (28 19:26 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Jun 2023 21:06:40 +0000 (28 14:06 -0700)
treef178e1b38ffac07467950f959689028745fd365f
parentf6c213a0cbf7071c845eef0afa4bc5f9c4883e51
config: add kvi.path, use it to evaluate includes

Include directives are evaluated using the path of the config file. To
reduce the dependence on "config_reader.source", add a new
"key_value_info.path" member and use that instead of
"config_source.path". This allows us to remove a "struct config_reader
*" field from "struct config_include_data", which will subsequently
allow us to remove "struct config_reader" entirely.

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