]> git.ipfire.org Git - thirdparty/git.git/commit
odb/source-loose: wire up `for_each_object()` callback
authorPatrick Steinhardt <ps@pks.im>
Mon, 1 Jun 2026 08:20:31 +0000 (10:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jun 2026 09:47:18 +0000 (18:47 +0900)
commite4f1d9ba5714957389bee87dd5f9fedb69d8a764
tree5fae05b4eba10ba1a10c96fde81214044afdadf9
parent727a935a71c29524c936520d8aba4de7098f7566
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