]> git.ipfire.org Git - thirdparty/git.git/commit
odb/transaction: make `write_object_stream()` pluggable
authorJustin Tobler <jltobler@gmail.com>
Thu, 14 May 2026 18:37:40 +0000 (13:37 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 May 2026 19:44:40 +0000 (04:44 +0900)
commit08b6afb2a2dbf762e3d9fa7abd78090b9afbd1a8
tree777ad8776b2986f8031f09b218d5968e89e8fc57
parent45a75d6187dd8e85470e70aaada6346576333370
odb/transaction: make `write_object_stream()` pluggable

How an ODB transaction handles writing objects is expected to vary
between implementations. Introduce a new `write_object_stream()`
callback in `struct odb_transaction` to make this function pluggable.
Rename `index_blob_packfile_transaction()` to
`odb_transaction_files_write_object_stream()` and wire it up for use
with `struct odb_transaction_files` accordingly.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-file.c
odb/transaction.c
odb/transaction.h