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

Re: 0.99.9 on Saturday next week.

From
Linus Torvalds <torvalds@osdl.org>
Date
Oct 26, 2005, 17:55 UTC
Message-ID
<Pine.LNX.4.64.0510261046570.10477@g5.osdl.org>
In-Reply-To
<b0943d9e0510260450k624268aav@mail.gmail.com>
On Wed, 26 Oct 2005, Catalin Marinas wrote:
> 
> I use Python for StGIT and it has support for parsing .ini syntax, no
> need to use GIT for this (unless the syntax you chose would diverge
> too much).
The syntax differences I'm aware of:
 - the git ".ini" parser is case-insensitive in the variable names. I 
   don't know if this is true in general. I do know a lot of people use 
   MixedCase things, but I don't know if it's because they care, or 
   because they think it's so pretty.
 - the git parser accepts either ";" or "#" as comments, and anywhere on a 
   line (not just at the beginning). Again, others may or may not do the 
   same.
 - the git parser wants a "=" for the assignment. I think the Python one 
   also accepts ":". If people care, we could make the git parser allow 
   either.
 - duplicate entries. The git parser allows them, and will just pass them 
   on multiple times. In fact, I had a patch (that I threw out) that 
   depended on this, and allowed you to rewrite hostnames for git_connect 
   with something like
	[host]
		rewrite = "host.com:" "git://git.host.com/"
		rewrite = "other.org:" "rsync://rsync.other.org/"
   and the git config file parser happily just parses this as two 
   different entries for "host.rewrite"
 - quoting. This is likely the big one. The git parser thinks only the 
   regular '"' character ("rabbit ears") is a quote, and passes single- 
   ticks through unmolested. I don't have a clue what others do, if 
   anything.

In the absense of quotes, most should be trivial to handle by just being careful.

		Linus
Previous: Catalin Marinas
Message 7 of 7 in “0.99.9 on Saturday next week.”
  1. Junio C HamanoOct 22, 2005
  2. H. Peter AnvinOct 22, 2005
  3. Catalin MarinasOct 25, 2005
  4. Junio C HamanoOct 25, 2005
  5. Linus TorvaldsOct 25, 2005
  6. Catalin MarinasOct 26, 2005
  7. Linus TorvaldsOct 26, 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.