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

Re: [RFC] Porting builtin/branch.c to use the printing options of ref-filter.{c,h}

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Aug 25, 2015, 20:06 UTC
Message-ID
<vpqvbc3t9no.fsf@anie.imag.fr>
In-Reply-To
<xmqq4mjnyzfy.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 5 quoted lines
> A less ambitious option might be:
>
>   3. Invent "%(refname:<some magic>)" format similar to
>      %(refname:short) but does your thing depending on the prefix
>      refs/heads/ and refs/remotes/.
Actually, this is the option I suggest offline.
> but that will not work if the difference between local and remote
> format is not merely textual (e.g. paint them in different color).

Hmm, yes, colors would be difficult to get with this solution. Perhaps a %(refname:autoprefix,autocolor) that would pick the color and do the textual rendering?

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 6 in “[RFC] Porting builtin/branch.c to use the printing options of ref-filter.{c,h}”
  1. Karthik NayakAug 25, 2015
  2. Junio C HamanoAug 25, 2015
  3. Matthieu MoyAug 25, 2015
  4. Junio C HamanoAug 25, 2015
  5. Karthik NayakAug 26, 2015
  6. Matthieu MoyAug 26, 2015

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.