It looks like we can also borrow routines directly from git, off of which it appears config.c was initial based:<div><br></div><div><a href="http://git.zx2c4.com/git/tree/config.c">http://git.zx2c4.com/git/tree/config.c</a></div>
<div><br></div><div>In fact, what about reworking our config in general to use git's system? This would involve supporting both our:</div><div><br></div><div>repo.blah = val</div><div><br></div><div>syntax as well as</div>
<div><br></div><div>[repo]</div><div>blah = val</div><div><br></div><div>which might be a little bit nice.</div><div><br></div><div><a href="http://git.zx2c4.com/git/tree/config.c#n898">http://git.zx2c4.com/git/tree/config.c#n898</a></div>
<div><br></div><div>git_config_from_file might be a possibility.</div><div><br>We'd get nice escaping too.</div>