Simply does submodule-update but faster by --reference and locally cached repositories.
On shared-submodule-update, the submodule’s remote repository is cloned to a
shared repository under ~/.git-shared-submodule (configurable) first.
Then
the submodule is updated by git submodule update with --reference pointing
to the shared repo, making submodule-update faster if you are using same
submodule among many repositories.
- --init
-
Passed to
git submodule update. - --no-dissociate
-
By default shared-submodule-update passes
--dissociateto submodule-update. This option supresses this behavior.NOTE: Do not use this option unless you have read the note for git-clone’s
--reference,--shared, and--dissociateoptions carefully.
- shared-submodule.root
-
The directory under which the shared repositories are cloned. Defaults to
~/.git-shared-submodule. Can be overridden by environment variableGIT_SHARED_SUBMODULE_ROOT.
Written by motemen <motemen@gmail.com>