From c86e8568d87aec483379f2cef0ab81580abd1af5 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Thu, 23 Feb 2006 02:58:37 -0800 Subject: [PATCH] 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 --- count-delta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/count-delta.c b/count-delta.c index 4e4d2f4f..3ee3a0cc 100644 --- a/count-delta.c +++ b/count-delta.c @@ -26,7 +26,7 @@ static void touch_range(struct span **span, again: if (ofs < e->end) { while (e->end < end) { - if (e->next) { + if (e->next && e->next->ofs <= end) { e->end = e->next->ofs; e = e->next; } -- 2.11.0