mirror of
https://github.com/git/git
synced 2024-09-13 13:24:41 +00:00
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>
This commit is contained in:
parent
907380eeff
commit
c86e8568d8
|
@ -26,7 +26,7 @@ static void touch_range(struct span **span,
|
||||||
again:
|
again:
|
||||||
if (ofs < e->end) {
|
if (ofs < e->end) {
|
||||||
while (e->end < end) {
|
while (e->end < end) {
|
||||||
if (e->next) {
|
if (e->next && e->next->ofs <= end) {
|
||||||
e->end = e->next->ofs;
|
e->end = e->next->ofs;
|
||||||
e = e->next;
|
e = e->next;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue