diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-08-13 11:13:57 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-08-13 10:01:03 -0700 |
| commit | d8b772182c50430a85963ce92696fc077dafa913 (patch) | |
| tree | b87e529c329f3624ab0acc13603788caf1036ee4 /read-cache.c | |
| parent | be7537e6a9efc5cf4d5378dddfa9fcb76f9ad775 (diff) | |
| download | git-d8b772182c50430a85963ce92696fc077dafa913.tar.gz | |
config: pass repo to `git_config_get_max_percent_split_change()`
Refactor `git_config_get_max_percent_split_change()` 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 12c2da5a8b..1e52db7f36 100644 --- a/read-cache.c +++ b/read-cache.c @@ -3275,7 +3275,7 @@ static const int default_max_percent_split_change = 20; static int too_many_not_shared_entries(struct index_state *istate) { int i, not_shared = 0; - int max_split = git_config_get_max_percent_split_change(); + int max_split = repo_config_get_max_percent_split_change(the_repository); switch (max_split) { case -1: |
