index-pack: use streaming interface for collision test on large blobs
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 24 May 2012 13:55:44 +0000 (20:55 +0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 May 2012 17:37:48 +0000 (10:37 -0700)
commit4614043c8fd8972bcde4fbfce7a8d25dd6d206fd
treeb259d95084bad3855fbe0e15fcc378fb9f33ec4a
parent8a2e163ccd03a12696cbf7518c0b742d313b6f02
index-pack: use streaming interface for collision test on large blobs

When putting whole objects in core is unavoidable, try match object
type and size first before actually inflating.

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
t/t5300-pack-object.sh