summaryrefslogtreecommitdiffstats
path: root/git-submodule.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-01-10 15:43:41 -0800
committerJunio C Hamano <gitster@pobox.com>2017-01-10 15:43:41 -0800
commit56ace3dc6b7a017d6acc8e6d1d2feb65257013d4 (patch)
treeee74fa5bf04df8a090959a61f59c19b7d7a3c5d3 /git-submodule.txt
parent9e35abf2be7349a7bcfc5580b01ee69d5718b008 (diff)
downloadgit-htmldocs-56ace3dc6b7a017d6acc8e6d1d2feb65257013d4.tar.gz
Autogenerated HTML docs for v2.11.0-295-gd7dff
Diffstat (limited to 'git-submodule.txt')
-rw-r--r--git-submodule.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/git-submodule.txt b/git-submodule.txt
index d84157347..918bd1d1b 100644
--- a/git-submodule.txt
+++ b/git-submodule.txt
@@ -22,6 +22,7 @@ SYNOPSIS
[commit] [--] [<path>...]
'git submodule' [--quiet] foreach [--recursive] <command>
'git submodule' [--quiet] sync [--recursive] [--] [<path>...]
+'git submodule' [--quiet] absorbgitdirs [--] [<path>...]
DESCRIPTION
@@ -245,6 +246,20 @@ sync::
If `--recursive` is specified, this command will recurse into the
registered submodules, and sync any nested submodules within.
+absorbgitdirs::
+ If a git directory of a submodule is inside the submodule,
+ move the git directory of the submodule into its superprojects
+ `$GIT_DIR/modules` path and then connect the git directory and
+ its working directory by setting the `core.worktree` and adding
+ a .git file pointing to the git directory embedded in the
+ superprojects git directory.
++
+A repository that was cloned independently and later added as a submodule or
+old setups have the submodules git directory inside the submodule instead of
+embedded into the superprojects git directory.
++
+This command is recursive by default.
+
OPTIONS
-------
-q::