pack-objects: avoid delta chains that are too long.
authorJunio C Hamano <junkio@cox.net>
Sat, 18 Feb 2006 04:58:45 +0000 (20:58 -0800)
committerJunio C Hamano <junkio@cox.net>
Wed, 22 Feb 2006 21:14:57 +0000 (13:14 -0800)
commit15b4d577ae2e0117b7b5a4add2217442a8458812
treea848f93d0530f2c4d71ceac2dbea2c1314b4b481
parent4181bda1567fc749623eac1c81c2b07c882d63b3
pack-objects: avoid delta chains that are too long.

This tries to rework the solution for the excess delta chain
problem. An earlier commit worked it around ``cheaply'', but
repeated repacking risks unbound growth of delta chains.

This version counts the length of delta chain we are reusing
from the existing pack, and makes sure a base object that has
sufficiently long delta chain does not get deltified.

Signed-off-by: Junio C Hamano <junkio@cox.net>
pack-objects.c