config: pass repo to `git_config_get_max_percent_split_change()`
commitd8b772182c50430a85963ce92696fc077dafa913
authorPatrick Steinhardt <ps@pks.im>
Tue, 13 Aug 2024 09:13:57 +0000 (13 11:13 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Aug 2024 17:01:03 +0000 (13 10:01 -0700)
treeb87e529c329f3624ab0acc13603788caf1036ee4
parentbe7537e6a9efc5cf4d5378dddfa9fcb76f9ad775
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>
config.c
config.h
read-cache.c