diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2009-06-28 14:55:45 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-06-30 11:17:54 -0700 |
commit | 1c3acfcd575cdd1bfc9981baf5782eb5cf433362 (patch) | |
tree | c867710a21dbd625708ea3450e62a073567baed2 /Documentation/git-submodule.txt | |
parent | 1bed73c64a354248d6b342e58df257e8233bcbd2 (diff) | |
download | git-1c3acfcd575cdd1bfc9981baf5782eb5cf433362.tar.gz |
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>
Diffstat (limited to 'Documentation/git-submodule.txt')
-rw-r--r-- | Documentation/git-submodule.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt index 3b8df44673..15b34d3760 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 |