]> git.ipfire.org Git - thirdparty/git.git/commit
object-file: refactor writing objects to use loose source
authorPatrick Steinhardt <ps@pks.im>
Thu, 21 May 2026 08:22:35 +0000 (10:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 May 2026 13:35:20 +0000 (22:35 +0900)
commit3a70bbe0cf0693155eee25c96da935b304defe5a
treea7658c722188bd8b714c04e85551e3c8d6e14d49
parentb0b58041176a53189ee1ad72a0399e3217a61930
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