]> git.ipfire.org Git - thirdparty/git.git/commit
streaming: drop redundant type and size pointers
authorPatrick Steinhardt <ps@pks.im>
Sun, 23 Nov 2025 18:59:44 +0000 (19:59 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 23 Nov 2025 20:56:46 +0000 (12:56 -0800)
commit7b940286527ec2175dffbb317f47e080bb37cf3e
tree2d5b17c348d3f01a3b35bf3e2e33943586b1c39e
parent1599b68d5e960a12f5ac624f81c70ece317db5a6
streaming: drop redundant type and size pointers

In the preceding commits we have turned `struct odb_read_stream` into a
publicly visible structure. Furthermore, this structure now contains the
type and size of the object that we are about to stream. Consequently,
the out-pointers that we used before to propagate the type and size of
the streamed object are now somewhat redundant with the data contained
in the structure itself.

Drop these out-pointers and adapt callers accordingly.

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