* Bug (?) in setting values with git-repo-config
@ 2007-01-08 2:41 Jakub Narebski
0 siblings, 0 replies; only message in thread
From: Jakub Narebski @ 2007-01-08 2:41 UTC (permalink / raw)
To: git
Currently there is no way to set up configuration variable to a value with
preceding whitespace, trailing whitespace, or one of comment delimiters
('#' or ';'). And one can't use "..." for that, because even encompassing
doublequotes gets escaped.
I think that git-repo-config should detect if value needs to be quoted, and
do that automatically...
$ declare -x GIT_CONFIG=gitconf
$ git repo-config section.key "value with # inside"
$ git repo-config --get section.key
value with
$ git repo-config section.key2 '"value with # inside"'
$ git repo-config --get section.key2
"value with
$ cat gitconf
[section]
key = value with # inside
key2 = \"value with # inside\"
(and the value should be:
keyn = "value with # inside"
--
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-01-08 2:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-08 2:41 Bug (?) in setting values with git-repo-config Jakub Narebski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox