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

Re: [PATCH] builtin-branch: highlight current remote branches with an asterisk

From
MBMark Burton <markb@ordern.com>
Date
Feb 10, 2009, 11:05 UTC
Message-ID
<20090210110546.5ead75a6@crow>
In-Reply-To
<76718490902091622y9a6d1bak5dc401858382e2ff@mail.gmail.com>

On Mon, 9 Feb 2009 19:22:50 -0500 Jay Soffian <jaysoffian@gmail.com> wrote:

Show 13 quoted lines
> (Please don't trim cc:)
> 
> On Mon, Feb 9, 2009 at 7:03 PM, Mark Burton <markb@ordern.com> wrote:
> > I don't know if I have any scripts that rely on a single star in front of
> > the local HEAD or not (I'm sure some people must have them), but I do
> > think this new feature would be very confusing, especially when used
> > with -a.
> >
> > At the very least, make the indicator something other than a star, an @
> > or #, perhaps.
> 
> With color, it shouldn't be confusing at all as only one branch is in
> green. 
How about the colour blind git users?
Show 37 quoted lines
> W/o color, it still seems clear to me as the remote branches
> have their remote name prefixed to them. Even if you're on a detached
> head:
> 
> * (no branch)
>   master
>   next
>   sent/branch-show-remote-HEAD
>   wip/am-usability-improvements
>   wip/push-docs
>   origin/html
>   origin/maint
>   origin/man
> * origin/master
>   origin/next
>   origin/pu
>   origin/todo
> 
> A different marker doesn't really seem like an improvement to me:
> 
> * (no branch)
>   master
>   next
>   sent/branch-show-remote-HEAD
>   wip/am-usability-improvements
>   wip/push-docs
>   origin/html
>   origin/maint
>   origin/man
> @ origin/master
>   origin/next
>   origin/pu
>   origin/todo
> 
> But I'm happy to have the community paint the shed I've constructed.
> 
> j.

You can paint a rickety old shed any colour you wish but it doesn't make it any stronger.

Personally, I think the -> syntax is a much better idea as it is unlikely to be confused with the existing marker and it shows the relationship between the (remote) HEAD and remote current branch.

Cheers,
Mark
Previous: Jay SoffianNext: Junio C Hamano
Message 5 of 16 in “builtin-branch: highlight current remote branches with an asterisk”
  1. builtin-branch: highlight current remote branches with an asteriskJay Soffian, Feb 9, 2009
  2. Johannes SchindelinFeb 9, 2009
  3. Mark BurtonFeb 10, 2009
  4. Jay SoffianFeb 10, 2009
  5. Mark BurtonFeb 10, 2009
  6. Junio C HamanoFeb 10, 2009
  7. Santi BéjarFeb 10, 2009
  8. Jay SoffianFeb 10, 2009
  9. Björn SteinbrinkFeb 10, 2009
  10. Santi BéjarFeb 10, 2009
  11. Björn SteinbrinkFeb 10, 2009
  12. Jeff KingFeb 10, 2009
  13. Björn SteinbrinkFeb 10, 2009
  14. Jeff KingFeb 10, 2009
  15. Björn SteinbrinkFeb 10, 2009
  16. Jeff KingFeb 10, 2009

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.