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

Re: [PATCH] gitweb: Different colours for tags and heads

From
Junio C Hamano <junkio@cox.net>
Date
Aug 12, 2006, 00:58 UTC
Message-ID
<7v4pwisrap.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<ebj6c3$4cj$1@sea.gmane.org>
Jakub Narebski <jnareb@gmail.com> writes:
> But they can be put into anonymous arrayref (e.g. ['heads/next',
> 'heads/autoconf'] at the start of 'autoconf' branch, or ['heads/master',
> 'heads/next', 'tags/v1.4.2'], not 'heads/master:heads/next:tags/v1.4.2'
> my patch did.

Concatenating them with ':' into a single string, only to later split it, sounds simply stupid; I'd go for arrayref if I were you.

> By the way, is it really usefull to have shortened ref name, e.g. 'web' for
> 'jn/web'? That is what gitweb does currently (only without giving ling name
> at all). It is probably bad practice, but I've had branches ab/sth and
> zz/sth, with the same shortname.

I think most people tend to use unique refs, so maybe showing the shortname by default and unique suffix when ambiguous (that would end up always showing minimal unique suffix) would be reasonable.

Previous: Jakub NarebskiNext: Martin Waitz
Message 5 of 6 in “gitweb: Different colours for tags and heads”
  1. gitweb: Different colours for tags and headsThomas Kolejka, Aug 11, 2006
  2. Jakub NarebskiAug 11, 2006
  3. Junio C HamanoAug 11, 2006
  4. Jakub NarebskiAug 12, 2006
  5. Junio C HamanoAug 12, 2006
  6. Martin WaitzAug 14, 2006

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.