git/odb
Patrick Steinhardt b1b008fa2b odb/streaming: track write stream size in the structure
When passing around a `struct odb_write_stream` we typically also have
to pass the number of bytes that the stream will yield. This is required
because the object header itself contains that size, and consequently we
cannot write the header without that information.

Move this information into the stream itself so that it becomes self-
describing. In addition to that, this also brings the `struct
odb_write_stream` a bit closer to the `struct odb_read_stream` so that
we can eventually merge both stream types.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-08-05 09:42:49 -07:00
..
source-files.c odb/streaming: track write stream size in the structure 2026-08-05 09:42:49 -07:00
source-files.h packfile: rename `struct packfile_store` to `odb_source_packed` 2026-06-17 04:59:59 -07:00
source-inmemory.c odb/streaming: track write stream size in the structure 2026-08-05 09:42:49 -07:00
source-inmemory.h odb/source-inmemory: convert to use oidtree 2026-05-15 04:50:45 +09:00
source-loose.c odb/streaming: track write stream size in the structure 2026-08-05 09:42:49 -07:00
source-loose.h odb/source-loose: drop pointer to the "files" source 2026-06-01 18:47:19 +09:00
source-packed.c odb/streaming: track write stream size in the structure 2026-08-05 09:42:49 -07:00
source-packed.h Merge branch 'ps/odb-generalize-prepare' 2026-07-13 08:27:28 -07:00
source.c odb/source: make `free()` function pluggable 2026-03-05 11:45:15 -08:00
source.h odb/streaming: track write stream size in the structure 2026-08-05 09:42:49 -07:00
streaming.c odb/streaming: track write stream size in the structure 2026-08-05 09:42:49 -07:00
streaming.h odb/streaming: track write stream size in the structure 2026-08-05 09:42:49 -07:00
transaction.c odb/streaming: track write stream size in the structure 2026-08-05 09:42:49 -07:00
transaction.h odb/streaming: track write stream size in the structure 2026-08-05 09:42:49 -07:00