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
parent
1bed73c64a
commit
1c3acfcd57
|
@ -17,6 +17,7 @@ caret=^
|
||||||
startsb=[
|
startsb=[
|
||||||
endsb=]
|
endsb=]
|
||||||
tilde=~
|
tilde=~
|
||||||
|
backtick=`
|
||||||
|
|
||||||
ifdef::backend-docbook[]
|
ifdef::backend-docbook[]
|
||||||
[linkgit-inlinemacro]
|
[linkgit-inlinemacro]
|
||||||
|
|
|
@ -137,8 +137,9 @@ foreach::
|
||||||
the processing to terminate. This can be overridden by adding '|| :'
|
the processing to terminate. This can be overridden by adding '|| :'
|
||||||
to the end of the command.
|
to the end of the command.
|
||||||
+
|
+
|
||||||
As an example, "git submodule foreach 'echo $path `git rev-parse HEAD`' will
|
As an example, +git submodule foreach \'echo $path {backtick}git
|
||||||
show the path and currently checked out commit for each submodule.
|
rev-parse HEAD{backtick}'+ will show the path and currently checked out
|
||||||
|
commit for each submodule.
|
||||||
|
|
||||||
sync::
|
sync::
|
||||||
Synchronizes submodules' remote URL configuration setting
|
Synchronizes submodules' remote URL configuration setting
|
||||||
|
|
Loading…
Reference in New Issue