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

Re: [PATCH 1/2] Allow '-' in config variable names

From
Linus Torvalds <torvalds@osdl.org>
Date
Oct 31, 2006, 03:23 UTC
Message-ID
<Pine.LNX.4.64.0610301922020.25218@g5.osdl.org>
In-Reply-To
<7vfyd5rxvg.fsf@assigned-by-dhcp.cox.net>
On Mon, 30 Oct 2006, Junio C Hamano wrote:
Show 7 quoted lines
> 
> One thing I forgot to add.  Just like we downcase what user has
> written in config file, it might make sense to also remove '-'
> (and if we add '_' to keychar set, that one as well) to when
> canonicalizing the key value.  That way, somewhat awkward long
> configuration variables we currently have can be written more
> readably, e.g. repack.use-delta-base-offset

Well, then we need to teach "git <alias>" that "git <al-i-as>" is the same thing as "alias".

Show 5 quoted lines
> > By the way, everybody seems to do "alias.xxx = -p cat-file -p"
> > (I have it as "git less").  Maybe we would want to make a
> > built-in alias for that?
> 
> Seconds?

I like it mainly as a great example of how to use aliases, not because I actually much -use- the thing, so I don't personally care.

Previous: J. Bruce FieldsNext: Johannes Schindelin
Message 8 of 9 in “Allow '-' in config variable names”
  1. 1/2 Allow '-' in config variable namesLinus Torvalds, Oct 30, 2006
  2. 2/2 git push: add verbose flag and allow overriding of default target repositoryLinus Torvalds, Oct 30, 2006
  3. Junio C HamanoOct 30, 2006
  4. Junio C HamanoOct 31, 2006
  5. Junio C HamanoOct 30, 2006
  6. Junio C HamanoOct 31, 2006
  7. J. Bruce FieldsOct 31, 2006
  8. Linus TorvaldsOct 31, 2006
  9. Johannes SchindelinOct 31, 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.