Skip to content

Commit c86e856

Browse files
author
Junio C Hamano
committed
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>
1 parent 907380e commit c86e856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

count-delta.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static void touch_range(struct span **span,
2626
again:
2727
if (ofs < e->end) {
2828
while (e->end < end) {
29-
if (e->next) {
29+
if (e->next && e->next->ofs <= end) {
3030
e->end = e->next->ofs;
3131
e = e->next;
3232
}

0 commit comments

Comments
 (0)