From: Miklos Vajna Date: Sun, 28 Jun 2009 12:55:45 +0000 (+0200) Subject: git-submodule documentation: fix foreach example X-Git-Tag: v1.6.4-rc0~10^2~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1c3acfcd575cdd1bfc9981baf5782eb5cf433362;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf index dc76e7f07..87a90f2c3 100644 --- a/Documentation/asciidoc.conf +++ b/Documentation/asciidoc.conf @@ -17,6 +17,7 @@ caret=^ startsb=[ endsb=] tilde=~ +backtick=` ifdef::backend-docbook[] [linkgit-inlinemacro] diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt index 3b8df4467..15b34d376 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