diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-08-13 11:13:57 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-13 19:01:03 +0200 |
commit | d8b772182c50430a85963ce92696fc077dafa913 (patch) | |
tree | b87e529c329f3624ab0acc13603788caf1036ee4 /config.h | |
parent | config: pass repo to `git_config_get_split_index()` (diff) | |
download | git-d8b772182c50430a85963ce92696fc077dafa913.tar.xz git-d8b772182c50430a85963ce92696fc077dafa913.zip |
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 <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |