]> Kevux Git Server - rit/commit
odb/source-loose: wire up `read_object_stream()` callback
authorPatrick Steinhardt <ps@pks.im>
Mon, 1 Jun 2026 08:20:30 +0000 (10:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jun 2026 09:47:18 +0000 (18:47 +0900)
commit727a935a71c29524c936520d8aba4de7098f7566
tree9b1ee362d25580f4e8da39435ddf8b09c40f9022
parent584338ed92735f3be768c16b53266d5bad439a7a
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