path: root/Documentation
diff options
authorCasey Fitzpatrick <>2018-05-03 10:53:46 (GMT)
committerJunio C Hamano <>2018-05-22 03:22:42 (GMT)
commita0ef29341accafa51345e90225d87f6a0d297b7b (patch)
tree5c890ac6cf58f59f9946b4e75c288b2a561d1e51 /Documentation
parent6d33e1c28210bacf2e664b55b2feb255991e0ad5 (diff)
submodule: add --dissociate option to add/update commands
Add --dissociate option to add and update commands, both clone helper commands that already have the --reference option --dissociate pairs with. Signed-off-by: Casey Fitzpatrick <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation')
1 files changed, 9 insertions, 1 deletions
diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt
index d1ebe32..a75b950 100644
--- a/Documentation/git-submodule.txt
+++ b/Documentation/git-submodule.txt
@@ -369,7 +369,15 @@ the submodule itself.
this option will be passed to the linkgit:git-clone[1] command.
*NOTE*: Do *not* use this option unless you have read the note
-for linkgit:git-clone[1]'s `--reference` and `--shared` options carefully.
+for linkgit:git-clone[1]'s `--reference`, `--shared`, and `--dissociate`
+options carefully.
+ This option is only valid for add and update commands. These
+ commands sometimes need to clone a remote repository. In this case,
+ this option will be passed to the linkgit:git-clone[1] command.
+*NOTE*: see the NOTE for the `--reference` option.
This option is only valid for foreach, update, status and sync commands.