* [PATCH] git-submodule documentation: fix foreach example
@ 2009-06-28 11:39 Miklos Vajna
2009-06-28 12:34 ` Jakub Narebski
0 siblings, 1 reply; 3+ messages in thread
From: Miklos Vajna @ 2009-06-28 11:39 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Mark Levedahl, git
Backstick 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>
---
Documentation/asciidoc.conf | 1 +
Documentation/git-submodule.txt | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf
index dc76e7f..b88d875 100644
--- a/Documentation/asciidoc.conf
+++ b/Documentation/asciidoc.conf
@@ -17,6 +17,7 @@ caret=^
startsb=[
endsb=]
tilde=~
+backstick=`
ifdef::backend-docbook[]
[linkgit-inlinemacro]
diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt
index 470bd75..8941ad7 100644
--- a/Documentation/git-submodule.txt
+++ b/Documentation/git-submodule.txt
@@ -141,8 +141,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 {backstick}git
+rev-parse HEAD{backstick}'+ will show the path and currently checked out
+commit for each submodule.
sync::
Synchronizes submodules' remote URL configuration setting
--
1.6.3.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] git-submodule documentation: fix foreach example
2009-06-28 11:39 [PATCH] git-submodule documentation: fix foreach example Miklos Vajna
@ 2009-06-28 12:34 ` Jakub Narebski
2009-06-28 12:55 ` [PATCH v2] " Miklos Vajna
0 siblings, 1 reply; 3+ messages in thread
From: Jakub Narebski @ 2009-06-28 12:34 UTC (permalink / raw)
To: Miklos Vajna; +Cc: Junio C Hamano, Mark Levedahl, git
Miklos Vajna <vmiklos@frugalware.org> writes:
> Backstick and apostrophe are asciidoc markup, so they should be escaped
> in order to get the expected result in the rendered manual page.
[...]
> startsb=[
> endsb=]
> tilde=~
> +backstick=`
It is 'backtick' (or 'backquote'), not 'backstick'. There is no 's'
in its name.
--
Jakub Narebski
Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2] git-submodule documentation: fix foreach example
2009-06-28 12:34 ` Jakub Narebski
@ 2009-06-28 12:55 ` Miklos Vajna
0 siblings, 0 replies; 3+ messages in thread
From: Miklos Vajna @ 2009-06-28 12:55 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Jakub Narebski, Mark Levedahl, git
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>
---
On Sun, Jun 28, 2009 at 05:34:23AM -0700, Jakub Narebski <jnareb@gmail.com> wrote:
> It is 'backtick' (or 'backquote'), not 'backstick'. There is no 's'
> in its name.
Ah, true. Thanks, fixed.
Documentation/asciidoc.conf | 1 +
Documentation/git-submodule.txt | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Documentation/asciidoc.conf b/Documentation/asciidoc.conf
index dc76e7f..b88d875 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 470bd75..8941ad7 100644
--- a/Documentation/git-submodule.txt
+++ b/Documentation/git-submodule.txt
@@ -141,8 +141,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
--
1.6.3.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-06-28 12:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-28 11:39 [PATCH] git-submodule documentation: fix foreach example Miklos Vajna
2009-06-28 12:34 ` Jakub Narebski
2009-06-28 12:55 ` [PATCH v2] " Miklos Vajna
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).