]> git.ipfire.org Git - thirdparty/git.git/commit
setup: stop using `the_repository` in `check_repository_format()`
authorPatrick Steinhardt <ps@pks.im>
Tue, 19 May 2026 09:52:19 +0000 (11:52 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 May 2026 10:36:25 +0000 (19:36 +0900)
commit602254dfb032b47349076132ab07dd3951aa2c3d
tree5f90e4875d994935f8a2b9ecc25d49ba53a55653
parent9cae7229c99bb606dcbe81b454bf19ada82769a4
setup: stop using `the_repository` in `check_repository_format()`

Stop using `the_repository` in `check_repository_format()` and instead
accept the repository as a parameter. The injection of `the_repository`
is thus bumped one level higher, where callers now pass it in
explicitly.

Furthermore, the function is never used outside "setup.c". Drop its
declaration in "setup.h" and make it static. Note that this requires us
to reorder the function.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c
setup.h