count-delta: fix counting of copied source.
The previous one wrongly coalesced a span with the next one even though the span being added does not reach it. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Feb 23, 2006 at 02:58 UTC
c86e8568d87aec483379f2cef0ab81580abd1af5
1 file changed
+1
-1
count-delta.c
+1
-1
@@ -26,7 +26,7 @@ static void touch_range(struct span **span,
26
again:
27
if (ofs < e->end) {
28
while (e->end < end) {
29
- if (e->next) {
29
+ if (e->next && e->next->ofs <= end) {
30
e->end = e->next->ofs;
31
e = e->next;
32
}