pack-objects: avoid delta chains that are too long.
commite4c9327a77bd59e85d4b17a612e78977d68773ee
authorJunio C Hamano <junkio@cox.net>
Sat, 18 Feb 2006 04:58:45 +0000 (17 20:58 -0800)
committerJunio C Hamano <junkio@cox.net>
Sat, 18 Feb 2006 05:48:48 +0000 (17 21:48 -0800)
tree84bccb584df5cf44465cff95bb17eb3ef92e0da8
parentcec2be76d9789b11c7f955b62dcad4b1050202af
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