From d8b772182c50430a85963ce92696fc077dafa913 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Tue, 13 Aug 2024 11:13:57 +0200 Subject: config: pass repo to `git_config_get_max_percent_split_change()` Refactor `git_config_get_max_percent_split_change()` 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 Signed-off-by: Junio C Hamano --- config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.h') diff --git a/config.h b/config.h index 35cee9d4ca..dd7127b8e9 100644 --- a/config.h +++ b/config.h @@ -712,7 +712,7 @@ int git_config_get_pathname(const char *key, char **dest); int repo_config_get_index_threads(struct repository *r, int *dest); int repo_config_get_split_index(struct repository *r); -int git_config_get_max_percent_split_change(void); +int repo_config_get_max_percent_split_change(struct repository *r); /* This dies if the configured or default date is in the future */ int git_config_get_expiry(const char *key, const char **output); -- cgit v1.2.3