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

Re: BUG: 'error: invalid key: pager.show_ref' on 'git show_ref'

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 6, 2015, 22:27 UTC
Message-ID
<xmqqk2zud6b0.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20150206203716.GA10857@peff.net>
Jeff King <peff@peff.net> writes:
Show 5 quoted lines
> A list of enum-like values where we are OK confining the names to the
> alnums is OK to use as an unbounded set of key values. Just like we have
> color.branch.*, we just pick a name within that syntax for any new
> values we add (and that is not even a burden; alnum names are what we
> would have picked anyway).

I would say that color.branch.<slot> names are very different from subcommand names. The latter is exposed to the end users who do not have to know that they can be used and must be usable as config keys.

color.branch.<slot> names were invented _only_ to be used to interact with the config, and nowhere else. Of course you can just pick a name within that "syntax for configuration variables" and be happy with it, because the users are very aware that they are using that name to name a configuration variable.

The names of the subcommands are very different in that they are not just for accessing configuration variables---if the user does not have pager.<cmd>, the user will not use it as configuration keys anywhere in the system.

Previous: Junio C HamanoNext: Jeff King
Message 15 of 16 in “BUG: 'error: invalid key: pager.show_ref' on 'git show_ref'”
  1. Andreas KreyFeb 6, 2015
  2. Jeff KingFeb 6, 2015
  3. Junio C HamanoFeb 6, 2015
  4. Jeff KingFeb 6, 2015
  5. config: add show_err flag to git_config_parse_key()Tanay Abhra, Feb 10, 2015
  6. Jeff KingFeb 11, 2015
  7. Junio C HamanoFeb 11, 2015
  8. add a flag to supress errors in git_config_parse_key()Tanay Abhra, Feb 16, 2015
  9. Jeff KingFeb 18, 2015
  10. Mikael MagnussonFeb 7, 2015
  11. Jeff KingFeb 7, 2015
  12. Junio C HamanoFeb 6, 2015
  13. Jeff KingFeb 6, 2015
  14. Junio C HamanoFeb 6, 2015
  15. Junio C HamanoFeb 6, 2015
  16. Jeff KingFeb 7, 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.