summaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-08-13 11:13:49 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-13 19:01:02 +0200
commit1870cc30d4c0652ac97e75035c5cb43d7caebbfa (patch)
tree4fb31822550cbe20292d4d262c5ac1ce26026307 /config.h
parentconfig: expose `repo_config_clear()` (diff)
downloadgit-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.h b/config.h
index 8eb3efa0c4..3f68b30047 100644
--- a/config.h
+++ b/config.h
@@ -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);