]> git.ipfire.org Git - thirdparty/git.git/commitdiff
docs: correct ORIG_HEAD example in "git merge" documentation
authorTimur Sultanaev <str.write@gmail.com>
Sat, 5 Jul 2025 17:39:18 +0000 (17:39 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Jul 2025 15:52:58 +0000 (08:52 -0700)
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 <str.write@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-merge.adoc

index 12aa859d16def950bfdfc8919d0e33e1bec4d0e3..500120421cacfdf0c3ad52cdf03998792e3c8cfd 100644 (file)
@@ -28,8 +28,8 @@ Assume the following history exists and the current branch is
 `master`:
 
 ------------
-         A---B---C topic
-        /
+          A---B---C topic
+         /
     D---E---F---G master
 ------------
 
@@ -38,11 +38,11 @@ Then `git merge topic` will replay the changes made on the
 its current commit (`C`) on top of `master`, and record the result
 in a new commit along with the names of the two parent commits and
 a log message from the user describing the changes. Before the operation,
-`ORIG_HEAD` is set to the tip of the current branch (`C`).
+`ORIG_HEAD` is set to the tip of the current branch (`G`).
 
 ------------
-         A---B---C topic
-        /         \
+          A---B---C topic
+         /         \
     D---E---F---G---H master
 ------------