Josh Steadmon <steadmon@xxxxxxxxxx> writes: > From: Glen Choo <chooglen@xxxxxxxxxx> > > The config parsing machinery (besides "include" directives) is usable by > programs other than Git - it works with any file written in Git config > syntax (IOW it doesn't rely on 'core' Git features like a repository), > and as of the series ending at 6e8e7981eb (config: pass source to > config_parser_event_fn_t, 2023-06-28), it no longer relies on global > state. Thus, we can and should start turning it into a library other > programs can use. Checking this with --color-moved looks good, but we'll need to take another look once my comments about the earlier patches have been addressed.