Re: [PATCH v3 1/2] difftool: add a skeleton for the upcoming builtin
- From
Stefan Beller <sbeller@google.com>
- Date
- Dec 6, 2016, 18:22 UTC
- Message-ID
- <CAGZ79kZoy2zSgSEc7kfAZ9tg9_uJxa+_FNFVO8UEDLVK6YDxVg@mail.gmail.com>
- In-Reply-To
- <20161206150955.mvq4ocamaei52bap@sigill.intra.peff.net>
On Tue, Dec 6, 2016 at 7:09 AM, Jeff King <peff@peff.net> wrote:
Show 7 quoted lines
>> >> 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.