]> git.ipfire.org Git - thirdparty/git.git/commit
odb/source-loose: wire up `for_each_object()` callback
authorPatrick Steinhardt <ps@pks.im>
Thu, 21 May 2026 08:22:28 +0000 (10:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 May 2026 13:35:19 +0000 (22:35 +0900)
commit56b7dcb0f73713e3ccfe6aa0307b8de87e23680d
tree569542b29140340c14963fc27f9ad501d3b9b3e0
parent6779bd073072b9ee2a601733774a5a1a16d47bee
odb/source-loose: wire up `for_each_object()` callback

Move `odb_source_loose_for_each_object()` and its associated helpers
from "object-file.c" into "odb/source-loose.c" and wire it up as the
`for_each_object()` callback of the loose source.

Again, as in the preceding commit, we are forced to expose a couple of
functions from "object-file.c" that are now used by both subsystems.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/cat-file.c
object-file.c
object-file.h
odb/source-files.c
odb/source-loose.c