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>
This commit is contained in:
committed by
Junio C Hamano
parent
1870cc30d4
commit
be7537e6a9
@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user