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

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

As part of the move we are also forced to expose a couple of functions
from "object-file.h" that parse object headers in a somewhat-generic
way, as those functions are now used by both subsystems.

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