diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-08-13 11:13:59 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-08-13 19:01:03 +0200 |
commit | 87aace129ef39fc52ca26e8d31c356c8d05ea910 (patch) | |
tree | b058e5e73f83b9fe65773fc2189a10f195163154 /read-cache.c | |
parent | config: pass repo to `git_config_get_max_percent_split_change()` (diff) | |
download | git-87aace129ef39fc52ca26e8d31c356c8d05ea910.tar.xz git-87aace129ef39fc52ca26e8d31c356c8d05ea910.zip |
config: pass repo to `git_config_get_expiry()`
Refactor `git_config_get_expiry()` 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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/read-cache.c b/read-cache.c index 1e52db7f36..18394d7180 100644 --- a/read-cache.c +++ b/read-cache.c @@ -3184,8 +3184,8 @@ static unsigned long get_shared_index_expire_date(void) static int shared_index_expire_date_prepared; if (!shared_index_expire_date_prepared) { - git_config_get_expiry("splitindex.sharedindexexpire", - &shared_index_expire); + repo_config_get_expiry(the_repository, "splitindex.sharedindexexpire", + &shared_index_expire); shared_index_expire_date = approxidate(shared_index_expire); shared_index_expire_date_prepared = 1; } |