]> git.ipfire.org Git - thirdparty/git.git/commit
odb: get rid of `the_repository` in `for_each()` functions
authorPatrick Steinhardt <ps@pks.im>
Tue, 1 Jul 2025 12:22:21 +0000 (14:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Jul 2025 21:46:36 +0000 (14:46 -0700)
commit798c661ce39f7d5297fa7ea8928ae464b6d5dd95
treed3e3e7263db4180d4b71ce7fd87b76a1e0004119
parentc44185f6c10fb2d306efe505112982a7c3b93789
odb: get rid of `the_repository` in `for_each()` functions

There are a couple of iterator-style functions that execute a callback
for each instance of a given set, all of which currently depend on
`the_repository`. Refactor them to instead take an object database as
parameter so that we can get rid of this dependency.

Rename the functions accordingly.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/count-objects.c
builtin/receive-pack.c
builtin/submodule--helper.c
diagnose.c
fetch-pack.c
odb.c
odb.h
revision.c