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

Re: [PATCH] blame: fix coloring for repeated suspects

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 2, 2026, 17:56 UTC
Message-ID
<xmqqqzr3yqpf.fsf@gitster.g>
In-Reply-To
<62e3ab10-bfa4-4ec7-9838-0bad89d04edd@web.de>
René Scharfe <l.s.r@web.de> writes:
Show 11 quoted lines
>> While this should work, I am kind of surprised that this has to done
>> as a sepecial case.  It often happens that two adjacent blocks may
>> be originally pass their blames to different parents of a merge, but
>> then the blame passes down through both branches down to the same
>> ancestor, at which point these two blocks need to be merged back
>> into the same source again, and I was hoping that a helper function
>> for it would be called to take care of this case as well.
>
> Do you mean blame_coalesce()?  It is called, but won't merge entries
> that are not ignored with those that are.  And we do need to keep them
> separate for blame.markignoredlines to work.

Yes, and sigh. I know "ignore these commits" came much later than the main part of blame, and I am not surprised if the way it was bolted on was not designed to mesh well with existing framework like the blame_coalesce() helper and what it tried to achieve.

Anyway, thanks for a fix.  Will queue.
Previous: René Scharfe
Message 6 of 6 in “[BUG] git-blame: --color-lines ignores --ignore-rev”
  1. Seth McDonaldFeb 1, 2026
  2. blame: fix coloring for repeated suspectsRené Scharfe, Feb 1, 2026
  3. Seth McDonaldFeb 2, 2026
  4. Junio C HamanoFeb 2, 2026
  5. René ScharfeFeb 2, 2026
  6. Junio C HamanoFeb 2, 2026

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.