Skip to content

Commit 953049e

Browse files
strowkgitster
authored andcommitted
docs: correct ORIG_HEAD example in "git merge" documentation
Documentation for git-merge incorrectly notes that tip of the current branch on ascii diagram is C, while it is actually G (current branch is master, HEAD on diagram is G). Additionally diagrams on the page are adjusted to use spaces instead of tabs, so that they align regardless of tab size. This is in line with diagrams on other git documentation pages. Signed-off-by: Timur Sultanaev <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 16bd9f2 commit 953049e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Documentation/git-merge.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Assume the following history exists and the current branch is
2828
`master`:
2929

3030
------------
31-
A---B---C topic
32-
/
31+
A---B---C topic
32+
/
3333
D---E---F---G master
3434
------------
3535

@@ -38,11 +38,11 @@ Then `git merge topic` will replay the changes made on the
3838
its current commit (`C`) on top of `master`, and record the result
3939
in a new commit along with the names of the two parent commits and
4040
a log message from the user describing the changes. Before the operation,
41-
`ORIG_HEAD` is set to the tip of the current branch (`C`).
41+
`ORIG_HEAD` is set to the tip of the current branch (`G`).
4242

4343
------------
44-
A---B---C topic
45-
/ \
44+
A---B---C topic
45+
/ \
4646
D---E---F---G---H master
4747
------------
4848

0 commit comments

Comments
 (0)