Re: [RFC] Git config file reader in Perl (WIP)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Wed, 17 Jan 2007, Jakub Narebski wrote:

> No key or value can contain "\n".

I just tried this:

	$ cat > .git/config << EOF
	[section] key = "Hello\nWorld"
	EOF
	$ git-repo-config -l
	section.key=Hello
	World

So, values _can_ contain newlines.

> With "\n" as separator you can simply rrturn NUL in the noval case.

Which would buy you what exactly? You can tell that the user did not say 
"noval = true", but "noval". Great. But the _effect_ should be the same!

Anyway, I realize you don't like my solution, so I will just shut up.

Ciao,
Dscho

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]