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

Re: [PATCH 1/3] for-each-ref: introduce %C(...) for color

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 1, 2013, 15:05 UTC
Message-ID
<xmqqli182mde.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CALkWK0nEMpVUkzafjDkVV-uaLTYzHYUTsZkmwRPkLFa=8NEkPA@mail.gmail.com>
Ramkumar Ramachandra <artagnon@gmail.com> writes:
Show 14 quoted lines
> Junio C Hamano wrote:
>> Ramkumar Ramachandra <artagnon@gmail.com> writes:
>>
>>> Enhance 'git for-each-ref' with color formatting options.  You can now
>>> use the following format in for-each-ref:
>>>
>>>   %C(green)%(refname:short)%C(reset)
>>
>> So far, every magic for-each-ref takes were of form %(...); was
>> there a reason why this had to be %C(...), not %(color=blah), or
>> something more in-line with the existing other magic?
>
> It is in-line with the color specification in pretty-formats. Would
> you strongly prefer something else?

This patch is about for-each-ref and your series does not seem to aim to unify it in any way with pretty-formats, so I would have expected an enhancement in line with the former, not the latter.

Previous: Ramkumar RamachandraNext: Ramkumar Ramachandra
Message 5 of 15 in “Minor f-e-r enhacements”
  1. 0/3 Minor f-e-r enhacementsRamkumar Ramachandra, Oct 31, 2013
  2. 1/3 for-each-ref: introduce %C(...) for colorRamkumar Ramachandra, Oct 31, 2013
  3. Junio C HamanoOct 31, 2013
  4. Ramkumar RamachandraNov 1, 2013
  5. Junio C HamanoNov 1, 2013
  6. Ramkumar RamachandraNov 2, 2013
  7. Junio C HamanoNov 4, 2013
  8. Ramkumar RamachandraNov 7, 2013
  9. Junio C HamanoNov 7, 2013
  10. Ramkumar RamachandraNov 8, 2013
  11. Junio C HamanoNov 8, 2013
  12. Ramkumar RamachandraNov 12, 2013
  13. 2/3 for-each-ref: introduce %(HEAD) asterisk markerRamkumar Ramachandra, Oct 31, 2013
  14. 3/3 for-each-ref: introduce %(upstream:track[short])Ramkumar Ramachandra, Oct 31, 2013
  15. Junio C HamanoNov 1, 2013

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.