summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-02-15 22:56:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-02-15 22:56:40 (GMT)
commit3e23116d1f77f73714c67fe546d879f4bbb633a0 (patch)
treebbab8afacd92b03bd034d50c91b646f1d9a3f3e2 /Documentation
parent8c00b7e583bc69e1e0a4f2fcd5a744c52fba24f0 (diff)
parente91461b3323ad75e02d2f4fa65b8482744f26036 (diff)
downloadgit-3e23116d1f77f73714c67fe546d879f4bbb633a0.zip
git-3e23116d1f77f73714c67fe546d879f4bbb633a0.tar.gz
git-3e23116d1f77f73714c67fe546d879f4bbb633a0.tar.bz2
Merge branch 'jk/doc-submodule-markup-fix'
Doc markup fix. * jk/doc-submodule-markup-fix: docs/git-submodule: fix unbalanced quote
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-submodule.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt
index 4a4cede..8acc72e 100644
--- a/Documentation/git-submodule.txt
+++ b/Documentation/git-submodule.txt
@@ -221,9 +221,12 @@ foreach [--recursive] <command>::
the processing to terminate. This can be overridden by adding '|| :'
to the end of the command.
+
-As an example, +git submodule foreach \'echo $path {backtick}git
-rev-parse HEAD{backtick}'+ will show the path and currently checked out
-commit for each submodule.
+As an example, the command below will show the path and currently
+checked out commit for each submodule:
++
+--------------
+git submodule foreach 'echo $path `git rev-parse HEAD`'
+--------------
sync [--recursive] [--] [<path>...]::
Synchronizes submodules' remote URL configuration setting