diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-08-13 11:13:49 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-13 19:01:02 +0200 |
commit | 1870cc30d4c0652ac97e75035c5cb43d7caebbfa (patch) | |
tree | 4fb31822550cbe20292d4d262c5ac1ce26026307 /config.h | |
parent | config: expose `repo_config_clear()` (diff) | |
download | git-1870cc30d4c0652ac97e75035c5cb43d7caebbfa.tar.xz git-1870cc30d4c0652ac97e75035c5cb43d7caebbfa.zip |
config: pass repo to `git_config_get_index_threads()`
Refactor `git_config_get_index_threads()` 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
@@ -710,7 +710,7 @@ int git_config_get_maybe_bool(const char *key, int *dest); */ int git_config_get_pathname(const char *key, char **dest); -int git_config_get_index_threads(int *dest); +int repo_config_get_index_threads(struct repository *r, int *dest); int git_config_get_split_index(void); int git_config_get_max_percent_split_change(void); |