Browse Source

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>
maint
Miklos Vajna 16 years ago committed by Junio C Hamano
parent
commit
1c3acfcd57
  1. 1
      Documentation/asciidoc.conf
  2. 5
      Documentation/git-submodule.txt

1
Documentation/asciidoc.conf

@ -17,6 +17,7 @@ caret=&#94; @@ -17,6 +17,7 @@ caret=&#94;
startsb=&#91;
endsb=&#93;
tilde=&#126;
backtick=&#96;

ifdef::backend-docbook[]
[linkgit-inlinemacro]

5
Documentation/git-submodule.txt

@ -137,8 +137,9 @@ foreach:: @@ -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

Loading…
Cancel
Save