summaryrefslogtreecommitdiffstats
path: root/git-submodule.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-05-17 16:34:02 -0700
committerJunio C Hamano <gitster@pobox.com>2013-05-17 16:34:02 -0700
commit3d1b5a1ebc2e4d9c3323a8f2b1fac732562968b5 (patch)
tree49e1d04b52edbaa0b3d2fc549ad3cdbe30f9e1ee /git-submodule.txt
parentba7fe50148ec50de8394e1fe0f672c47bf6d4c17 (diff)
downloadgit-htmldocs-3d1b5a1ebc2e4d9c3323a8f2b1fac732562968b5.tar.gz
Autogenerated HTML docs for v1.8.3-rc3
Diffstat (limited to 'git-submodule.txt')
-rw-r--r--git-submodule.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/git-submodule.txt b/git-submodule.txt
index 74d5bdc59..e5767134b 100644
--- a/git-submodule.txt
+++ b/git-submodule.txt
@@ -77,6 +77,8 @@ argument <path> is the relative location for the cloned submodule
to exist in the superproject. If <path> is not given, the
"humanish" part of the source repository is used ("repo" for
"/path/to/repo.git" and "foo" for "host.xz:foo/.git").
+The <path> is also used as the submodule's logical name in its
+configuration entries unless `--name` is used to specify a logical name.
+
<repository> is the URL of the new submodule's origin repository.
This may be either an absolute URL, or (if it begins with ./
@@ -124,8 +126,10 @@ linkgit:git-status[1] and linkgit:git-diff[1] will provide that information
too (and can also report changes to a submodule's work tree).
init::
- Initialize the submodules, i.e. register each submodule name
- and url found in .gitmodules into .git/config.
+ Initialize the submodules recorded in the index (which were
+ added and committed elsewhere) by copying submodule
+ names and urls from .gitmodules to .git/config.
+ Optional <path> arguments limit which submodules will be initialized.
It will also copy the value of `submodule.$name.update` into
.git/config.
The key used in .git/config is `submodule.$name.url`.