git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.
Previous: Edmundo Carmona AntoranzNext: Edmundo Carmona Antoranz
Message 3 of 4 in “blame: add support for --[no-]progress option”
  1. blame: add support for --[no-]progress optionEdmundo Carmona Antoranz, Nov 22, 2015
  2. Edmundo Carmona AntoranzNov 22, 2015
  3. Edmundo Carmona AntoranzNov 22, 2015
  4. Edmundo Carmona AntoranzNov 22, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.