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

Re: [PATCH] Add config variable core.symrefsonly

From
Linus Torvalds <torvalds@osdl.org>
Date
Nov 15, 2005, 18:39 UTC
Message-ID
<Pine.LNX.4.64.0511151028540.3945@g5.osdl.org>
In-Reply-To
<Pine.LNX.4.63.0511151923120.1103@wbgn013.biozentrum.uni-wuerzburg.de>
On Tue, 15 Nov 2005, Johannes Schindelin wrote:
> 
> 	Linus, is there any reason you don´t allow spaces, underscores
> 	and dashes in the config variables?

I much preferred being anal and maybe relaxing the rules later than being permissive and accepting horrible crap.

Spaces are definitely out, since we are trying to igore whitespace everywhere, but underscores and dashes might be ok.

However, the traditional way to do these kinds of things in ini files is with PrettyCaps(tm), ie you'd do

	[core]
		SymRefsOnly = true
rather than the C way.

Let's face it, the C way is the only true way for a programming language, but having case matter in something unimportant and human-readable like a "ini" file is just bothersome, so PrettyCase(tm) actually makes sense there.

PrettyCase is for toys - unimportant things where it's more important to 
say "we don't care" over saying "we need to be precise". So Pascal is PC. 
It's a toy language. FAT is PC - it's a toy filesystem. And ini files are 
PC: it's more important that a config file is human-readable than it is 
that it's very precise and strict.

Put another way: real programmers want strict rules, because they know they'll be hurt without them. But _users_ need to be coddled. And ini files aren't for programmers, they are for users.

		Linus
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 2 of 3 in “Add config variable core.symrefsonly”
  1. Add config variable core.symrefsonlyJohannes Schindelin, Nov 15, 2005
  2. Linus TorvaldsNov 15, 2005
  3. Johannes SchindelinNov 15, 2005

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.