Re: [PATCH v3 3/6] unpack-objects: continue when fail to malloc due to large objects

2014-08-14 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy pclo...@gmail.com writes: As a recovery tool, unpack-objects should go on unpacking as many objects as it can. Signed-off-by: Nguyễn Thái Ngọc Duy pclo...@gmail.com --- builtin/unpack-objects.c | 42 +- t/t1050-large.sh

Re: [PATCH v3 3/6] unpack-objects: continue when fail to malloc due to large objects

2014-08-14 Thread Duy Nguyen
On Thu, Aug 14, 2014 at 11:58 PM, Junio C Hamano gits...@pobox.com wrote: +static void inflate_and_throw_away(unsigned long size) +{ But more importantly, the basic structure of this loop is the same as the loop we already have in the only caller of this new function, not just the regular

[PATCH v3 3/6] unpack-objects: continue when fail to malloc due to large objects

2014-08-13 Thread Nguyễn Thái Ngọc Duy
As a recovery tool, unpack-objects should go on unpacking as many objects as it can. Signed-off-by: Nguyễn Thái Ngọc Duy pclo...@gmail.com --- builtin/unpack-objects.c | 42 +- t/t1050-large.sh | 7 +++ 2 files changed, 48 insertions(+), 1