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

Re: [PATCH] document behavior of empty color name

From
Jeff King <peff@peff.net>
Date
Feb 4, 2017, 00:49 UTC
Message-ID
<20170204004944.cnhy3lthcuocgltm@sigill.intra.peff.net>
In-Reply-To
<xmqqy3xnf8jm.fsf@gitster.mtv.corp.google.com>
On Fri, Feb 03, 2017 at 10:12:13AM -0800, Junio C Hamano wrote:
Show 6 quoted lines
> > Right, I think that's the correct behavior. The empty color name is a
> > real color ("none"), and you can put it in your list just like any other
> > color.
> 
> Makes me wonder if we have a non-empty string that spells the same
> "do nothing", because ...

I don't think we do. "plain" or "none" or something would work. Or I suppose "reset". That is not the same thing, but for practical purposes it probably is.

> The above is just me "wondering"; I do not think what we have needs
> further tweaks--an empty after the final comma that means "do-nothing"
> is fine, I would think.

Yeah. I think doing anything more fancy opens more questions than it answers.

-Peff
Previous: Junio C HamanoNext: Patrick Steinhardt
Message 9 of 11 in “What's cooking in git.git (Jan 2017, #06; Tue, 31)”
  1. Junio C HamanoJan 31, 2017
  2. color_parse_mem: allow empty color specJeff King, Feb 1, 2017
  3. Jacob KellerFeb 1, 2017
  4. Duy NguyenFeb 2, 2017
  5. document behavior of empty color nameJeff King, Feb 2, 2017
  6. Duy NguyenFeb 3, 2017
  7. Jeff KingFeb 3, 2017
  8. Junio C HamanoFeb 3, 2017
  9. Jeff KingFeb 4, 2017
  10. Patrick SteinhardtFeb 1, 2017
  11. Junio C HamanoFeb 1, 2017

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.