]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/fsck: stop using `the_repository` with loose objects
authorPatrick Steinhardt <ps@pks.im>
Mon, 23 Mar 2026 15:03:00 +0000 (16:03 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Mar 2026 15:33:11 +0000 (08:33 -0700)
commit2b2287c479ced6f794a7c8d305c39eef4ee563f5
tree365b69bc4f2375cbd1ac492c7c1914ce1e155e1e
parent38e09ebfd444f04e7282e5a7109edb6800864d41
builtin/fsck: stop using `the_repository` with loose objects

We depend on `the_repository` when performing consistency checks for
loose objects. Refactor this to use a context-provided repository
instead that is injected via the `struct for_each_loose_cb`.

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