config: pass repo to git_config_get_split_index()

Refactor `git_config_get_split_index()` to accept a `struct repository`
such that we can get rid of the implicit dependency on `the_repository`.
Rename the function accordingly.

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-08-13 11:13:54 +02:00
committed by Junio C Hamano
parent 1870cc30d4
commit be7537e6a9
4 changed files with 6 additions and 6 deletions

View File

@@ -711,7 +711,7 @@ int git_config_get_maybe_bool(const char *key, int *dest);
int git_config_get_pathname(const char *key, char **dest);
int repo_config_get_index_threads(struct repository *r, int *dest);
int git_config_get_split_index(void);
int repo_config_get_split_index(struct repository *r);
int git_config_get_max_percent_split_change(void);
/* This dies if the configured or default date is in the future */