This build on top of 163b9b1f919c762a4bfb693b3aa05ef1aa627fee
(origin/sb/submodule-parallel-update~3) and replaces the commits
origin/sb/submodule-parallel-update~2..
* Renamed inspect_clone_next_submodule to prepare_to_clone_next_submodule
and reordered the arguments thereof
* Comments for the struct submodule_update_clone which is passed around
* Better handling around LFs.
* Renamed struct child_process *cp to *child
* Print #unmatched in git-submodule.sh instead of the helper
>
> if (pp->update.type == SM_UPDATE_NONE
> || (pp->update.type == SM_UPDATE_UNSPECIFIED
> && sub->update_strategy.type == SM_UPDATE_NONE)) {
>
> What does pp stand for?
I think I took it as parallel_process when starting off from the parallel
processing machinery. I'll rename it (probably to suc as short for struct
submodule_update_clone).
> > + if (pp->recursive_prefix)
> > + displaypath = relative_path(pp->recursive_prefix,
> > + ce->name, &displaypath_sb);
>
> Nit: could use braces.
Why? I would understand a few lines above where we have an if nested in an
if with braces. But here we have a pretty straighforward one statement per case
condition.
> > + sub = submodule_from_path(null_sha1, ce->name);
>
> It's common to call submodule_from_path with null_sha1 as a parameter
> but I have trouble continuing to remember what that means. Maybe
> there should be a separate function that handles that? As a
> side-effect, the name and docstring of that function could explain
> what it means, which I still am not sure about. :)
I'll do that as a followup cleanup patch as it affects more than just the
new code.
>> + OPT_STRING(0, "reference", &pp.reference, "<repository>",
>> + N_("Use the local reference repository "
>> + "instead of a full clone")),
> Is this allowed to be relative? If so, what is it relative to?
It is passing on the argument to clone, so I assume the same rules apply as for
git-clone.
Thanks,
Stefan
Stefan Beller (5):
run-command: expose default_{start_failure, task_finished}
run_processes_parallel: add LF when caller is sloppy
git submodule update: have a dedicated helper for cloning
submodule update: expose parallelism to the user
clone: allow an explicit argument for parallel submodule clones
Documentation/git-clone.txt | 6 +-
Documentation/git-submodule.txt | 7 +-
builtin/clone.c | 19 ++-
builtin/submodule--helper.c | 255 +++++++++++++++++++++++++++++++++++++++-
git-submodule.sh | 56 ++++-----
run-command.c | 35 ++++--
run-command.h | 19 +++
t/t0061-run-command.sh | 26 ++++
t/t7406-submodule-update.sh | 27 +++++
test-run-command.c | 18 +++
10 files changed, 412 insertions(+), 56 deletions(-)
--
2.7.0.rc0.34.ga06e0b3.dirty
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html