pack-objects: only throw away data during memory pressure
commit9c2174350cc0ae0f6bad126e15fe1f9f044117ab
authorMartin Koegler <mkoegler@auto.tuwien.ac.at>
Mon, 11 Feb 2008 07:26:25 +0000 (11 08:26 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Feb 2008 20:24:33 +0000 (11 12:24 -0800)
treea3cf08537a034a45dca47fd4807e540a2d8b8b8e
parent5a95b85566b1700e042fdce6ec2de9ce7b5a8787
pack-objects: only throw away data during memory pressure

If pack-objects hit the memory limit, it deletes objects from the delta
window.

This patch make it only delete the data, which is recomputed, if needed again.

Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-pack-objects.c