summaryrefslogtreecommitdiff
path: root/t/t8007-cat-file-textconv.sh
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2021-05-05 14:33:31 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-05-06 12:56:09 +0900
commitde94c0eace41c9d93f6c2c97e98797afabb5932e (patch)
tree744ecc65f18c7b9c0ae03d25791001f7010a029f /t/t8007-cat-file-textconv.sh
parentstreaming.c: remove {open,close,read}_method_decl() macros (diff)
downloadtgif-de94c0eace41c9d93f6c2c97e98797afabb5932e.tar.xz
streaming.c: stop passing around "object_info *" to open()
Change the streaming interface to stop passing around the "struct object_info" the open() functions. As seen in 7ef2d9a2604 (streaming: read non-delta incrementally from a pack, 2011-05-13) which introduced the "st->u.in_pack" assignments being changed here only the open_istream_pack_non_delta() path need these. So let's instead do this when preparing the selected callback in the istream_source() function. This might also allow the compiler to reduce the lifetime of the "oi" variable, as we've moved it from "git_istream()" to "istream_source()". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t8007-cat-file-textconv.sh')
0 files changed, 0 insertions, 0 deletions