Skip to contentSkip to conversation

PATCH Documentation/git-rev-list.txt typo fix

PATCH [email protected] 4 participants 7 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

I'm not positive what the doc conventions are, but I think something like this patch fixes the "superscript" problem on the git-rev-list doc page.

---

Documentation/git-rev-list.txt +2 -2
@@ -32,8 +32,8 @@ I have the commit object 'bar', but not
 
 The *--bisect* flag limits output to the one commit object which is
 roughly halfway between the included and excluded commits. Thus,
-if "git-rev-list --bisect foo ^bar ^baz" outputs 'midpoint', the output
-of "git-rev-list foo ^midpoint" and "git-rev-list midpoint ^bar ^baz"
+if 'git-rev-list --bisect foo ^bar ^baz' outputs 'midpoint', the output
+of 'git-rev-list foo ^midpoint' and 'git-rev-list midpoint ^bar ^baz'
 would be of roughly the same length. Finding the change which introduces
 a regression is thus reduced to a binary search: repeatedly generate and
 test new 'midpoint's until the commit chain is of length one.
#1 lore raw
Quoted 5 lines · On Thu, Sep 15, 2005 at 05:40:13PM -0500, [email protected] wrote:

I'm not positive what the doc conventions are, but I think something like this patch fixes the "superscript" problem on the git-rev-list doc page.

<snip>

Review

Quoted 4 lines
(quoted diff) +2 -2
-if "git-rev-list --bisect foo ^bar ^baz" outputs 'midpoint', the output
-of "git-rev-list foo ^midpoint" and "git-rev-list midpoint ^bar ^baz"
+if 'git-rev-list --bisect foo ^bar ^baz' outputs 'midpoint', the output
+of 'git-rev-list foo ^midpoint' and 'git-rev-list midpoint ^bar ^baz'

<snip>

This causes a mismatch in <emphasis> and <superscript> tags, one way of fixing it is having no more than one caret symbol per line, which is the only solution I found in the asciidoc documentation. Ugly, but it works.

---

Documentation/git-rev-list.txt +5 -2
@@ -32,8 +32,11 @@ I have the commit object 'bar', but not 
 
 The *--bisect* flag limits output to the one commit object which is
 roughly halfway between the included and excluded commits. Thus,
-if 'git-rev-list --bisect foo ^bar ^baz' outputs 'midpoint', the output
-of 'git-rev-list foo ^midpoint' and 'git-rev-list midpoint ^bar ^baz'
+if 'git-rev-list --bisect foo ^bar
+^baz' outputs 'midpoint', the output
+of 'git-rev-list foo ^midpoint' and 'git-rev-list midpoint
+^bar
+^baz'
 would be of roughly the same length. Finding the change which introduces
 a regression is thus reduced to a binary search: repeatedly generate and
 test new 'midpoint's until the commit chain is of length one.
#2 lore raw

Thanks. Will be pushed out when mister.kernel.org comes back online after relocation.

#3 lore raw
In reply to Peter Hagervall
Quoted 3 lines · Peter Hagervall

This causes a mismatch in <emphasis> and <superscript> tags, one way of fixing it is having no more than one caret symbol per line, which is the only solution I found in the asciidoc documentation. Ugly, but it works.

Thanks.

Sigh...

#4 lore raw
Quoted 7 lines · * Junio C Hamano ([email protected]) wrote:
Quoted 3 lines · Peter Hagervall

This causes a mismatch in <emphasis> and <superscript> tags, one way of fixing it is having no more than one caret symbol per line, which is the only solution I found in the asciidoc documentation. Ugly, but it works.

Thanks.

This is breaking the build. Reverting fixes the build...

[chrisw@vas Documentation]$ make git-rev-list.1
asciidoc -b docbook -d manpage git-rev-list.txt
xmlto man git-rev-list.xml
xmlto: input does not validate (status 1)
/home/chrisw/git/git/git/Documentation/git-rev-list.xml:38: parser error : Opening and ending tag mismatch: superscript line 38 and emphasis
of <emphasis>git-rev-list foo <superscript>midpoint</emphasis> and <emphasis>git ^
/home/chrisw/git/git/git/Documentation/git-rev-list.xml:38: parser error : Opening and ending tag mismatch: emphasis line 38 and superscript
perscript>midpoint</emphasis> and <emphasis>git-rev-list midpoint </superscript> ^make: *** [git-rev-list.1] Error 1
rm git-rev-list.xml

thanks,
-chris

#5 lore raw
Quoted 10 lines · * Chris Wright ([email protected]) wrote:
Quoted 7 lines · * Junio C Hamano ([email protected]) wrote:
Quoted 3 lines · Peter Hagervall

This causes a mismatch in <emphasis> and <superscript> tags, one way of fixing it is having no more than one caret symbol per line, which is the only solution I found in the asciidoc documentation. Ugly, but it works.

Thanks.

This is breaking the build. Reverting fixes the build...

Err, ignore me. I was one patch behind. That patch from Peter fixes the broken build introduced by Jon.

thanks,
-chris

#6 lore raw
Quoted 5 lines

Err, ignore me. I was one patch behind. That patch from Peter fixes the broken build introduced by Jon.

chris

Mea culpa. Apologies.

jdl