Re: [RFC PATCHv2 09/17] update submodules: add scheduling to update submodules

2016-12-05 Thread Stefan Beller
t;> Cc: git@vger.kernel.org; sand...@crustytoothpaste.net; hvo...@hvoigt.net; >> gits...@pobox.com; Stefan Beller >> Subject: [RFC PATCHv2 09/17] update submodules: add scheduling to update >> submodules > [snip] >> +static int update_submodule(const char *path, const struct

RE: [RFC PATCHv2 09/17] update submodules: add scheduling to update submodules

2016-12-05 Thread David Turner
gits...@pobox.com; Stefan Beller > Subject: [RFC PATCHv2 09/17] update submodules: add scheduling to update > submodules [snip] > +static int update_submodule(const char *path, const struct object_id > *oid, > + int force, int is_new) > +{ > + const char

[RFC PATCHv2 09/17] update submodules: add scheduling to update submodules

2016-12-02 Thread Stefan Beller
The walker of a tree is only expected to call `schedule_submodule_for_update` and once done, to run `update_submodules`. This avoids directory/file conflicts and later we can parallelize all submodule actions if needed. Signed-off-by: Stefan Beller --- submodule.c | 132 +