{"thread":{"id":"6278","subject":"Bug (?) in setting values with git-repo-config","startedAt":"2007-01-08T02:41:25Z","lastAt":"2007-01-08T02:41:25Z","messageCount":1,"participants":["Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"31109","messageId":"ensb0c$si4$1@sea.gmane.org","threadId":"6278","inReplyTo":null,"subject":"Bug (?) in setting values with git-repo-config","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2007-01-08T02:41:25Z","receivedAt":"2007-01-08T02:41:25Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Currently there is no way to set up configuration variable to a value with\npreceding whitespace, trailing whitespace, or one of comment delimiters\n('#' or ';'). And one can't use \"...\" for that, because even encompassing\ndoublequotes gets escaped.\n\nI think that git-repo-config should detect if value needs to be quoted, and\ndo that automatically...\n\n$ declare -x GIT_CONFIG=gitconf\n$ git repo-config section.key \"value with # inside\" \n$ git repo-config --get section.key                    \nvalue with\n$ git repo-config section.key2 '\"value with # inside\"'\n$ git repo-config --get section.key2 \n\"value with\n$ cat gitconf \n[section]\n        key = value with # inside\n        key2 = \\\"value with # inside\\\"\n\n(and the value should be:\n        keyn = \"value with # inside\"\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n"}]}