Re: [PATCH v2 19/24] submodule.c: remove implicit dependency on the_index

2018-10-19 Thread Stefan Beller
> > > > Yeah. Killing the_index is just the first small step (didn't look that > > small when I started). Now it's all about the_repository ;-) and we > > have like 400 references of it just in library code. > > I suspect it is much worse than that, even. There are many spots that > likely are rely

Re: [PATCH v2 19/24] submodule.c: remove implicit dependency on the_index

2018-10-19 Thread Duy Nguyen
On Fri, Oct 19, 2018 at 6:42 PM Jeff King wrote: > > > I don't see anything in the "Kill the_index, final part" series that > > > would need it. > > > > Yeah. Killing the_index is just the first small step (didn't look that > > small when I started). Now it's all about the_repository ;-) and we >

Re: [PATCH v2 19/24] submodule.c: remove implicit dependency on the_index

2018-10-19 Thread Jeff King
On Fri, Oct 19, 2018 at 06:53:01PM +0200, Duy Nguyen wrote: > > OK, that all makes sense. I need to either drop it or mark it unused to > > satisfy -Wunused-parameters. > > Aha! I thought you looked deeply into this and was very confused. How > could you have found the time :D To be fair, dealin

Re: [PATCH v2 19/24] submodule.c: remove implicit dependency on the_index

2018-10-19 Thread Duy Nguyen
On Fri, Oct 19, 2018 at 12:42:38PM -0400, Jeff King wrote: > On Fri, Oct 19, 2018 at 06:33:30PM +0200, Duy Nguyen wrote: > > > > This function doesn't actually make use of the newly added "istate" (nor > > > does it use the_index, so there's not a spot that forgot to get > > > converted). Is this

Re: [PATCH v2 19/24] submodule.c: remove implicit dependency on the_index

2018-10-19 Thread Jeff King
On Fri, Oct 19, 2018 at 06:33:30PM +0200, Duy Nguyen wrote: > > This function doesn't actually make use of the newly added "istate" (nor > > does it use the_index, so there's not a spot that forgot to get > > converted). Is this in preparation for more refactoring, or is it just a > > mistake and

Re: [PATCH v2 19/24] submodule.c: remove implicit dependency on the_index

2018-10-19 Thread Duy Nguyen
On Fri, Oct 19, 2018 at 6:20 PM Jeff King wrote: > > On Mon, Sep 03, 2018 at 08:09:27PM +0200, Nguyễn Thái Ngọc Duy wrote: > > > diff --git a/submodule.c b/submodule.c > > index 50cbf5f13e..c0c1224760 100644 > > --- a/submodule.c > > +++ b/submodule.c > > @@ -766,7 +766,8 @@ static void collect_ch

Re: [PATCH v2 19/24] submodule.c: remove implicit dependency on the_index

2018-10-19 Thread Jeff King
On Mon, Sep 03, 2018 at 08:09:27PM +0200, Nguyễn Thái Ngọc Duy wrote: > diff --git a/submodule.c b/submodule.c > index 50cbf5f13e..c0c1224760 100644 > --- a/submodule.c > +++ b/submodule.c > @@ -766,7 +766,8 @@ static void collect_changed_submodules_cb(struct > diff_queue_struct *q, > * have a

[PATCH v2 19/24] submodule.c: remove implicit dependency on the_index

2018-09-03 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/pull.c | 2 +- submodule.c| 28 +--- submodule.h| 9 ++--- transport.c| 9 ++--- 4 files changed, 30 insertions(+), 18 deletions(-) diff --git a/builtin/pull.c b/builtin/pull.c index 33b7100837..9c4559