summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2009-06-28 12:55:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-06-30 18:17:54 (GMT)
commit1c3acfcd575cdd1bfc9981baf5782eb5cf433362 (patch)
treec867710a21dbd625708ea3450e62a073567baed2
parent1bed73c64a354248d6b342e58df257e8233bcbd2 (diff)
downloadgit-1c3acfcd575cdd1bfc9981baf5782eb5cf433362.zip
git-1c3acfcd575cdd1bfc9981baf5782eb5cf433362.tar.gz
git-1c3acfcd575cdd1bfc9981baf5782eb5cf433362.tar.bz2
git-submodule documentation: fix foreach example
Backtick and apostrophe are asciidoc markup, so they should be escaped in order to get the expected result in the rendered manual page. Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Documentation/asciidoc.conf1
-rw-r--r--Documentation/git-submodule.txt5
2 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf
index dc76e7f..87a90f2 100644
--- a/Documentation/asciidoc.conf
+++ b/Documentation/asciidoc.conf
@@ -17,6 +17,7 @@ caret=&#94;
startsb=&#91;
endsb=&#93;
tilde=&#126;
+backtick=&#96;
ifdef::backend-docbook[]
[linkgit-inlinemacro]
diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt
index 3b8df44..15b34d3 100644
--- a/Documentation/git-submodule.txt
+++ b/Documentation/git-submodule.txt
@@ -137,8 +137,9 @@ foreach::
the processing to terminate. This can be overridden by adding '|| :'
to the end of the command.
+
-As an example, "git submodule foreach 'echo $path `git rev-parse HEAD`' will
-show the path and currently checked out commit for each submodule.
+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.
sync::
Synchronizes submodules' remote URL configuration setting