]> Kevux Git Server - rit/commit
object-file: refactor writing objects to use loose source
authorPatrick Steinhardt <ps@pks.im>
Mon, 1 Jun 2026 08:20:38 +0000 (10:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Jun 2026 09:47:18 +0000 (18:47 +0900)
commitb9906a645c38ef77643d661ac9a5a6aa31fbeaf4
treefd3aa2fcee46df7e4d7f573229aada8fdfc6ed9b
parent04a6e84cbdbebadd01d939168f1c69680c174fce
object-file: refactor writing objects to use loose source

The "object-file" subsystem still hosts the majority of logic used to
write loose objects. Eventually, we'll want to move this logic into
"odb/source-loose.c", but this isn't yet easily possible because a lot
of the writing logic is still being shared with `force_object_loose()`.

We will eventually detangle this logic so that we can indeed move all of
it into the "loose" source. Meanwhile though, refactor the code so that
it operates on a `struct odb_source_loose` directly to already make the
dependency explicit.

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