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 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 "zlib produc

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 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 > --- > builtin/unpack-objects.c | 42 +- > t/t1050-large.sh | 7 +++ > 2 files cha

[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 --- builtin/unpack-objects.c | 42 +- t/t1050-large.sh | 7 +++ 2 files changed, 48 insertions(+), 1 deletion(-) diff --g