diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-08-13 11:13:54 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-13 19:01:03 +0200 |
commit | be7537e6a9efc5cf4d5378dddfa9fcb76f9ad775 (patch) | |
tree | e60a95654aba8fd335dfc49173afb03dd4ae8fbf /read-cache.c | |
parent | config: pass repo to `git_config_get_index_threads()` (diff) | |
download | git-be7537e6a9efc5cf4d5378dddfa9fcb76f9ad775.tar.xz git-be7537e6a9efc5cf4d5378dddfa9fcb76f9ad775.zip |
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>
Diffstat (limited to 'read-cache.c')
-rw-r--r-- | read-cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c index ad09950153..12c2da5a8b 100644 --- a/read-cache.c +++ b/read-cache.c @@ -1945,7 +1945,7 @@ static void tweak_untracked_cache(struct index_state *istate) static void tweak_split_index(struct index_state *istate) { - switch (git_config_get_split_index()) { + switch (repo_config_get_split_index(the_repository)) { case -1: /* unset: do nothing */ break; case 0: /* false */ |