index-pack: factor out unpack core from get_data_from_pack
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Wed, 23 May 2012 14:09:48 +0000 (21:09 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 May 2012 16:08:55 +0000 (09:08 -0700)
commit8a2e163ccd03a12696cbf7518c0b742d313b6f02
tree7c099fe2cefec7422e90e2315a63d44d9c8d5a61
parent9ec2dde9f3008ed3822c8e7510ab710bdb613873
index-pack: factor out unpack core from get_data_from_pack

This allows caller to consume large inflated object with a fixed
amount of memory.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/index-pack.c