config: make the config source const

The `struct git_config_source` passed to `config_with_options()` is
never modified. Let's mark it as `const` to clarify.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Patrick Steinhardt
2024-05-15 08:42:06 +02:00
committed by Junio C Hamano
parent e44b018c52
commit 12b2306830
2 changed files with 3 additions and 3 deletions

View File

@@ -232,7 +232,7 @@ void git_config(config_fn_t fn, void *);
* sets `opts.respect_includes` to `1` by default.
*/
int config_with_options(config_fn_t fn, void *,
struct git_config_source *config_source,
const struct git_config_source *config_source,
struct repository *repo,
const struct config_options *opts);