aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/gitmodules.txt
diff options
context:
space:
mode:
authorPetar Vutov <pvutov@imap.cc>2023-07-25 23:22:18 +0200
committerJunio C Hamano <gitster@pobox.com>2023-07-25 14:55:07 -0700
commit7cebc5bd786a95722dc545a2cad22124ec996c00 (patch)
treee1dcff8ef765451df421a295e15ce16f10777079 /Documentation/gitmodules.txt
parentfb7d80edcae482f4fa5d4be0227dc3054734e5f3 (diff)
downloadgit-7cebc5bd786a95722dc545a2cad22124ec996c00.tar.gz
doc: highlight that .gitmodules does not support !command
Bugfix for fc01a5d2 (submodule update documentation: don't repeat ourselves, 2016-12-27). The `custom command` and `none` options are described as sharing the same limitations, but one is allowed in .gitmodules and the other is not. Rewrite the description for custom commands to be more precise, and make it easier for readers to notice that custom commands cannot be used in the .gitmodules file. Signed-off-by: Petar Vutov <pvutov@imap.cc> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/gitmodules.txt')
-rw-r--r--Documentation/gitmodules.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/gitmodules.txt b/Documentation/gitmodules.txt
index dcee09b500..d9bec8b187 100644
--- a/Documentation/gitmodules.txt
+++ b/Documentation/gitmodules.txt
@@ -43,9 +43,9 @@ submodule.<name>.update::
command in the superproject. This is only used by `git
submodule init` to initialize the configuration variable of
the same name. Allowed values here are 'checkout', 'rebase',
- 'merge' or 'none'. See description of 'update' command in
- linkgit:git-submodule[1] for their meaning. For security
- reasons, the '!command' form is not accepted here.
+ 'merge' or 'none', but not '!command' (for security reasons).
+ See the description of the 'update' command in
+ linkgit:git-submodule[1] for more details.
submodule.<name>.branch::
A remote branch name for tracking updates in the upstream submodule.