Git development
 help / color / mirror / Atom feed
* Typo in man page for git-merge
@ 2026-09-05 16:29 Fabian Kratz
  2026-09-05 17:00 ` Kristoffer Haugsbakk
  0 siblings, 1 reply; 2+ messages in thread
From: Fabian Kratz @ 2026-09-05 16:29 UTC (permalink / raw)
  To: git@vger.kernel.org


[-- Attachment #1.1: Type: text/plain, Size: 878 bytes --]

Hi, I just read the git man page git-merge and believe that I found a typo/error in an example. I don't know if this is the right place to post this, but this is the section:

> Assume the following history exists and the current branch is "master":
>
>               A---B---C topic
>              /
>         D---E---F---G master
>
> Then "git merge topic" will replay the changes made on the topic branch since it diverged from master (i.e.,
> E) until 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).

I believe ORIG_HEAD is actually set to G here, not C. My own experiments support this and it's what I would expect after reading the explanation.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 343 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-05 17:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-05 16:29 Typo in man page for git-merge Fabian Kratz
2026-09-05 17:00 ` Kristoffer Haugsbakk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox