]> git.ipfire.org Git - thirdparty/git.git/commit
odb: trivial refactorings to get rid of `the_repository`
authorPatrick Steinhardt <ps@pks.im>
Tue, 1 Jul 2025 12:22:24 +0000 (14:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Jul 2025 21:46:37 +0000 (14:46 -0700)
commit16cf7494962f20d09dcd8ef20af8962600fafca9
treeb40492b353a40c178a014561758e97c3e3db6428
parentfc28a8a856a1e7978794e7dee61c42d7d5740a6b
odb: trivial refactorings to get rid of `the_repository`

All of the external functions provided by the object database subsystem
don't depend on `the_repository` anymore, but some internal functions
still do. Refactor those cases by plumbing through the repository that
owns the object database.

This change allows us to get rid of the `USE_THE_REPOSITORY_VARIABLE`
preprocessor define.

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