archive-zip: streaming for deflated files
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Thu, 3 May 2012 01:51:08 +0000 (08:51 +0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 May 2012 17:22:57 +0000 (10:22 -0700)
commitc743c21591f9433fe784ac38902872701ce2e850
tree1ed1fd767799e5bcbb32c443fe9ef916bfe1026f
parent2158f883d99a92f801534c91294305ccbe171f79
archive-zip: streaming for deflated files

After an entry has been streamed out, its CRC and sizes are written as
part of a data descriptor.

For simplicity, we make the buffer for the compressed chunks twice as
big as for the uncompressed ones, to be sure the result fit in even
if deflate makes them bigger.

t5000 verifies output. t1050 makes sure the command always respects
core.bigfilethreshold

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive-zip.c
t/t1050-large.sh
t/t5000-tar-tree.sh