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

Re: [PATCH 4/3] bisect: use a detached HEAD to bisect

From
Jeff King <peff@peff.net>
Date
May 25, 2008, 00:37 UTC
Message-ID
<20080525003755.GA11019@sigill.intra.peff.net>
In-Reply-To
<alpine.LFD.1.10.0805240842360.3081@woody.linux-foundation.org>
On Sat, May 24, 2008 at 09:14:21AM -0700, Linus Torvalds wrote:
Show 9 quoted lines
> I actually like the red circle for "Local uncommitted changes". Maybe we 
> can use a similar visual clue for "currently checked out". You already 
> picked green for the "added to the index" case, so we have the three 
> primary RGB colors already used, but we could make it just be a deep 
> yellow.
>
> [...]
> 
> Here's a "make it yellow" patch.

I kind of expected this to color the _ref_, not the commit bubble. That is, I think it is useful not just to see that "this commit is pointed to by HEAD" but that "master is the currently checked out branch."

Of course in the case of detached HEAD, we would have only the commit to color. But in that case a green box probably makes sense, since you probably aren't going to have a bunch of other boxes pointing to it (at most, a tag name or remote tracking branch name).

IOW,
  1. If head points to a ref, color the background of that ref box
     specially (yellow and green are taken. Red is probably a bit too
     danger-implying.  Blue?)
     ...
     Hmm, actually it looks like we already bold the refname in that
     case. I never noticed that until now. If I'm not the only one,
     then maybe that is an argument for making the differentiation more
     obvious.
  2. If head is detached, add a green 'HEAD' box.
-Peff
Previous: Linus TorvaldsNext: Paul Mackerras
Message 8 of 10 in “bisect: use a detached HEAD to bisect”
  1. 4/3 bisect: use a detached HEAD to bisectChristian Couder, May 22, 2008
  2. Junio C HamanoMay 23, 2008
  3. Christian CouderMay 23, 2008
  4. Jon LoeligerMay 23, 2008
  5. Linus TorvaldsMay 23, 2008
  6. Paul MackerrasMay 24, 2008
  7. Linus TorvaldsMay 24, 2008
  8. Jeff KingMay 25, 2008
  9. Paul MackerrasMay 26, 2008
  10. Junio C HamanoMay 26, 2008

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.