On Tue, Dec 6, 2016 at 7:09 AM, Jeff King <peff@xxxxxxxx> wrote: >> >> Maybe even go a step further and say that the config code needs a context >> "object". > > If I were writing git from scratch, I'd consider making a "struct > repository" object. I'm not sure how painful it would be to retro-fit it > at this point. Would it be possible to introduce "the repo" struct similar to "the index" in cache.h? >From a submodule perspective I would very much welcome this object oriented approach to repositories.