Re: [PATCH v1] blame: add support for --[no-]progress option
- From
Edmundo Carmona Antoranz <eantoranz@gmail.com>
- Date
- Nov 22, 2015, 09:07 UTC
- Message-ID
- <CAOc6etbnOCDPv+25dEgYGajCSbpixMu_ahhsWM7EOCcqYpamUg@mail.gmail.com>
- In-Reply-To
- <CAOc6etbfzrqT4-5dorCAq_=5Oh9wXV4LgRwK9hrEqjmSYHiBEg@mail.gmail.com>
I think I found where to calculate the number of blamed lines without having to do it from scratch every cycle. It's where the list of sb->ent is getting its nodes pointed.... around here:
for (;;) {
struct blame_entry *next = ent->next;
found_guilty_entry(ent);
if (next) {
ent = next;
continue;
}
ent->next = sb->ent;
sb->ent = suspect->suspects;
suspect->suspects = NULL;
break;
}So the function I added to blame.c, it's gone.