git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git status when merging non-conflicted 3-way merge says "All conflicts fixed"
@ 2021-05-25  7:03 Bagas Sanjaya
  2021-05-26 14:30 ` Elijah Newren
  0 siblings, 1 reply; 7+ messages in thread
From: Bagas Sanjaya @ 2021-05-25  7:03 UTC (permalink / raw)
  To: Git Users

Hi,

Supposed that we have following commit graph:

----A----B----C----D <- master
               \
                ----E <- e

When we merge e branch by `git merge e`, obviously we will do 3-way
merge. Assumed that the merge doesn't conflict, Git will fire up
editor to edit `COMMIT_EDITMSG` for us to enter merge commit
message. Then we abort the commit by either delete all the lines
there, or comment all of them.

But when we check status by `git status`, Git says:

> On branch master
> All conflicts fixed but you are still merging.
>   (use "git commit" to conclude merge)

That message above is misleading, because we know that our merge
doesn't conflict (3-way merge applied successfully without conflict). 
However, it makes sense only when we have resolved all conflicts
on the conflicted merge.

So for non-conflicted merge, we can say instead:

> On branch <branch>
> You are still merging, and the merge applied without any conflicts.
>   (use "git commit" to conclude merge)

Thanks.

-- 
An old man doll... just what I always wanted! - Clara

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

end of thread, other threads:[~2021-05-26 22:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-25  7:03 git status when merging non-conflicted 3-way merge says "All conflicts fixed" Bagas Sanjaya
2021-05-26 14:30 ` Elijah Newren
2021-05-26 15:13   ` Phillip Wood
2021-05-26 16:07     ` Elijah Newren
2021-05-26 22:54       ` Junio C Hamano
2021-05-26 16:06   ` Igor Djordjevic
2021-05-26 16:08     ` Elijah Newren

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).