[PATCH] Use strbuf for reading configuration files

Jason A. Donenfeld Jason at zx2c4.com
Tue Jun 4 19:35:19 CEST 2013


It looks like we can also borrow routines directly from git, off of which
it appears config.c was initial based:

http://git.zx2c4.com/git/tree/config.c

In fact, what about reworking our config in general to use git's system?
This would involve supporting both our:

repo.blah = val

syntax as well as

[repo]
blah = val

which might be a little bit nice.

http://git.zx2c4.com/git/tree/config.c#n898

git_config_from_file might be a possibility.

We'd get nice escaping too.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20130604/77e78961/attachment.html>


More information about the CGit mailing list