Skip to content

Commit b7e1ba5

Browse files
Martin Ågrengitster
authored andcommitted
git-merge-index.txt: wrap shell listing in "----"
The example output of `git merge-index` has been enriched by a second "column" of helpful comments. When Asciidoctor renders this, the cells in that second column aren't aligned. Fix this by marking the example shell session as a code listing by wrapping it in "----". Also drop some of the horizontal space between the two columns so that we fit into 80 columns. This changes the rendering with both AsciiDoc and Asciidoctor. They now render this identically, nicely aligned, and within 80 columns. Signed-off-by: Martin Ågren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 38cadf9 commit b7e1ba5

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

Documentation/git-merge-index.txt

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,24 @@ original is first. But the argument order to the 3-way merge program
5454

5555
Examples:
5656

57-
torvalds@ppc970:~/merge-test> git merge-index cat MM
58-
This is MM from the original tree. # original
59-
This is modified MM in the branch A. # merge1
60-
This is modified MM in the branch B. # merge2
61-
This is modified MM in the branch B. # current contents
57+
----
58+
torvalds@ppc970:~/merge-test> git merge-index cat MM
59+
This is MM from the original tree. # original
60+
This is modified MM in the branch A. # merge1
61+
This is modified MM in the branch B. # merge2
62+
This is modified MM in the branch B. # current contents
63+
----
6264

6365
or
6466

65-
torvalds@ppc970:~/merge-test> git merge-index cat AA MM
66-
cat: : No such file or directory
67-
This is added AA in the branch A.
68-
This is added AA in the branch B.
69-
This is added AA in the branch B.
70-
fatal: merge program failed
67+
----
68+
torvalds@ppc970:~/merge-test> git merge-index cat AA MM
69+
cat: : No such file or directory
70+
This is added AA in the branch A.
71+
This is added AA in the branch B.
72+
This is added AA in the branch B.
73+
fatal: merge program failed
74+
----
7175

7276
where the latter example shows how 'git merge-index' will stop trying to
7377
merge once anything has returned an error (i.e., `cat` returned an error

0 commit comments

Comments
 (0)