]> git.ipfire.org Git - thirdparty/git.git/commit
object-file: get rid of `the_repository` when writing objects
authorPatrick Steinhardt <ps@pks.im>
Thu, 17 Jul 2025 04:56:36 +0000 (06:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Jul 2025 05:16:16 +0000 (22:16 -0700)
commite7e952f5c27bbca3d98bbcea6d20cd5b63d7d8e5
tree8a52ac4e02fa740f40c929cde207303b9342f088
parentab1c6e1d12e869cbca3ea7f8a4e767e45fd14c49
object-file: get rid of `the_repository` when writing objects

The logic that writes loose objects still relies on `the_repository` to
decide where exactly the object shall be written to. Refactor it so that
the logic instead operates on a `struct odb_source` so that we can get
rid of this global dependency.

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