Thread (2 messages) flat view 2 messages, 2 authors, 2026-02-02

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

From: René Scharfe <hidden>
Date: 2026-02-02 16:24:50

On 2/2/26 1:42 PM, Junio C Hamano wrote:
René Scharfe [off-list ref] writes:
quoted
The option --ignore-rev passes the blame to an older commit.  This can
cause adjacent scoreboard entries to blame the same commit.  Currently
we only look a the present entry when determining whether a line needs
"look at"?
Yes.
quoted
to be colored for --color-lines.  Check the previous entry as well.
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.

René
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help