summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2016-10-10 12:36:41 -0700
committerJunio C Hamano <gitster@pobox.com>2016-10-11 10:03:36 -0700
commit72710165c932edb2b8552aef7aef2f357dde4746 (patch)
tree91520837ec8f13ec922474a2eed834c57edee32e
parent0b65a8dbdb38962e700ee16776a3042beb489060 (diff)
downloadgit-sb/submodule-config-doc-drop-path.tar.gz
documentation: improve submodule.<name>.{url, path} descriptionsb/submodule-config-doc-drop-path
Unlike the url variable a user cannot override the the path variable, as it is part of the content together with the gitlink at the given path. To avoid confusion do not mention the .path variable in the config section and rely on the documentation provided in gitmodules[5]. Enhance the description of submodule.<name>.url and mention its two use cases separately. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Documentation/config.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 02696208c9..34449e37e4 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -2706,12 +2706,13 @@ stash.showStat::
option will show diffstat of the stash. Defaults to true.
See description of 'show' command in linkgit:git-stash[1].
-submodule.<name>.path::
submodule.<name>.url::
- The path within this project and URL for a submodule. These
- variables are initially populated by 'git submodule init'. See
- linkgit:git-submodule[1] and linkgit:gitmodules[5] for
- details.
+ The URL for a submodule. This variable is copied from the .gitmodules
+ file to the git config via 'git submodule init'. The user can change
+ the configured URL before obtaining the submodule via 'git submodule
+ update'. After obtaining the submodule, the presence of this variable
+ is used as a sign whether the submodule is of interest to git commands.
+ See linkgit:git-submodule[1] and linkgit:gitmodules[5] for details.
submodule.<name>.update::
The default update procedure for a submodule. This variable