@matheusbsbs / matheus-bagliano / commits / 1c3acfcd57
Fork 0

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>

Miklos Vajna committed Jun 28, 2009 at 14:55 UTC 1c3acfcd575cdd1bfc9981baf5782eb5cf433362
2 files changed +4 -2
Documentation/asciidoc.conf
+1
@@ -17,6 +17,7 @@ caret=&#94;
17 startsb=&#91;
18 endsb=&#93;
19 tilde=&#126;
20 +backtick=&#96;
21
22 ifdef::backend-docbook[]
23 [linkgit-inlinemacro]
Documentation/git-submodule.txt
+3 -2
@@ -137,8 +137,9 @@ foreach::
137 the processing to terminate. This can be overridden by adding '|| :'
138 to the end of the command.
139 +
140 -As an example, "git submodule foreach 'echo $path `git rev-parse HEAD`' will
141 -show the path and currently checked out commit for each submodule.
140 +As an example, +git submodule foreach \'echo $path {backtick}git
141 +rev-parse HEAD{backtick}'+ will show the path and currently checked out
142 +commit for each submodule.
143
144 sync::
145 Synchronizes submodules' remote URL configuration setting