author | Brian Gernhardt <benji@silverinsanity.com> | |
Tue, 9 Jan 2007 05:27:41 +0000 (00:27 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 9 Jan 2007 06:00:18 +0000 (22:00 -0800) | ||
commit | cdd4fb15cf06ec1de588bee4576509857d8e2cb4 | |
tree | 83341bf9b9b28007f2d92a344b0c1cb7df0e54c2 | tree | snapshot |
parent | baee1e91ed41cd369ca3ddd63615b64feaa0286f | commit | diff |
Auto-quote config values in config.c:store_write_pair()
Suggested by Jakub Narebski <jnareb@gmail.com> on the list.
When we send a value to store_write_pair(), make sure that the value
that gets read out matches the one passed in. This means that for any
value that contains leading or trailing whitespace or any comment
character (# and ;), we need to surround it in quotes.
Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Suggested by Jakub Narebski <jnareb@gmail.com> on the list.
When we send a value to store_write_pair(), make sure that the value
that gets read out matches the one passed in. This means that for any
value that contains leading or trailing whitespace or any comment
character (# and ;), we need to surround it in quotes.
Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
config.c | diff | blob | history | |
t/t1300-repo-config.sh | diff | blob | history |