From: Junio C Hamano Date: Thu, 23 Feb 2006 10:58:37 +0000 (-0800) Subject: count-delta: tweak counting of copied source material. X-Git-Tag: v1.3.0-rc1~54^2~40^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/907380eeff27e9a07d6f1c03847c3d80f9e0e79a?hp=907380eeff27e9a07d6f1c03847c3d80f9e0e79a count-delta: tweak counting of copied source material. With the finer grained delta algorithm, count-delta algorithm started overcounting copied source material, since the new delta output tends to reuse the same source range more than once and more aggressively. This broke an earlier assumption that the number of bytes copied out from the source buffer is a good approximation how much source material is actually remaining in the result. This uses fairly inefficient algorithm to keep track of ranges of source material that are actually copied out to the destination buffer. With this tweak, the obvious rename/break detection tests in the testsuite start to work again. Signed-off-by: Junio C Hamano ---