From: Jakub Narebski <jnareb@gmail•com>
To: git@vger•kernel.org
Subject: Bug (?) in setting values with git-repo-config
Date: Mon, 08 Jan 2007 03:41:25 +0100 [thread overview]
Message-ID: <ensb0c$si4$1@sea.gmane.org> (raw)
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
reply other threads:[~2007-01-08 2:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ensb0c$si4$1@sea.gmane.org' \
--to=jnareb@gmail$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox