]> git.ipfire.org Git - thirdparty/git.git/commit
object-file: get rid of `the_repository` when freshening objects
authorPatrick Steinhardt <ps@pks.im>
Thu, 17 Jul 2025 04:56:31 +0000 (06:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Jul 2025 05:16:14 +0000 (22:16 -0700)
commit1031f57695ed02da06d1af5ac945bb243262fa09
tree798039bb7fdf05e18e458bc0e27d144dcc212831
parentf6638bf55d0c611b86873cc1c88b0dac3bc653e2
object-file: get rid of `the_repository` when freshening objects

We implicitly depend on `the_repository` when freshening either loose or
packed objects. Refactor these functions to instead accept an object
database as input so that we can get rid of the global dependency.

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