]> git.ipfire.org Git - thirdparty/git.git/commit
config: pass source to config_parser_event_fn_t
authorGlen Choo <chooglen@google.com>
Wed, 28 Jun 2023 19:26:30 +0000 (19:26 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Jun 2023 21:06:40 +0000 (14:06 -0700)
commit6e8e7981eb86e2c19401825dbdb55d5860d11313
treec5c1585221546325e71d5718f9a4f96b3152a4ec
parent908857a9f8a63c7d8fee1bd5f52b1aa1cf3434de
config: pass source to config_parser_event_fn_t

..so that the callback can use a "struct config_source" parameter
instead of "config_reader.source". "struct config_source" is internal to
config.c, so we are adding a pointer to a struct defined in config.c
into a public function signature defined in config.h, but this is okay
because this function has only ever been (and probably ever will be)
used internally by config.c.

As a result, the_reader isn't used anywhere, so "struct config_reader"
is obsolete (it was only intended to be used with the_reader). Remove
them.

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