diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-11-23 19:59:29 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-23 12:56:44 -0800 |
| commit | 3c7722dd4d376e0fce4c48f723fe8b69af785998 (patch) | |
| tree | 98737219afad6f9efa2da4a5381a4e167e8f7e50 /t/helper/test-cache-tree.c | |
| parent | 3f64deabdf0a2a9664acec61698affc449e07496 (diff) | |
| download | git-3c7722dd4d376e0fce4c48f723fe8b69af785998.tar.gz | |
streaming: explicitly pass packfile info when streaming a packed object
When streaming a packed object we first populate the stream with
information about the pack that contains the object before calling
`open_istream_pack_non_delta()`. This is done because we have already
looked up both the pack and the object's offset, so it would be a waste
of time to look up this information again.
But the way this is done makes for a somewhat awkward calling interface,
as the caller now needs to be aware of how exactly the function itself
behaves.
Refactor the code so that we instead explicitly pass the packfile info
into `open_istream_pack_non_delta()`. This makes the calling convention
explicit, but more importantly this allows us to refactor the function
so that it becomes its responsibility to allocate the stream itself in a
subsequent patch.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-cache-tree.c')
0 files changed, 0 insertions, 0 deletions
