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

Re: Improved git-gui blame viewer

From
Martin Waitz <tali@admingilde.org>
Date
Jun 4, 2007, 07:38 UTC
Message-ID
<20070604073827.GF16637@admingilde.org>
In-Reply-To
<20070604060720.GF4507@spearce.org>
hoi :)
On Mon, Jun 04, 2007 at 02:07:20AM -0400, Shawn O. Pearce wrote:
Show 13 quoted lines
> >   When clicking on a light gray line to become a green line, then
> >   adjacent areas are not correctly colored.  A few adjacent entries
> >   become all same gray... [Look around git-gui.sh:340]
> 
> This (I think) is because of the way the color selections are
> being done.  git-gui is being stupid and just alternating colors to
> commits as they come in from `git blame --incremental`.  The thing
> about the incremental blame is I can receive data for any part of
> the file at any time.  So in general what happens is I get data for
> one part of the file, give it color A, then data for another part,
> give it color B, and then get data for part that is right next to the
> first A and assign it A again.  So you see chunks where there is no
> alternating...

If you use three colors you can always select one which is different to the hunk above and below. But I don't know if that would be visually appealing...

Another nice thing would be a smooth gradient for each hunk. Then we could use the same colors for every hunk, but the top of each hunk would be a little bit lighter/darker than the bottom so that it is easy to see the border. Is that doable in Tk? Perhaps a simple small line between hunks is enough, too?

-- 
Martin Waitz
Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 4 of 12 in “Improved git-gui blame viewer”
  1. Shawn O. PearceJun 2, 2007
  2. Matthijs MelchiorJun 2, 2007
  3. Shawn O. PearceJun 4, 2007
  4. Martin WaitzJun 4, 2007
  5. Shawn O. PearceJun 4, 2007
  6. Martin WaitzJun 4, 2007
  7. Matthijs MelchiorJun 4, 2007
  8. Shawn O. PearceJun 5, 2007
  9. Matthijs MelchiorJun 5, 2007
  10. Alex RiesenJun 4, 2007
  11. Shawn O. PearceJun 5, 2007
  12. Alex RiesenJun 5, 2007

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.