git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* no MERGE_HEAD after octopus merge failure
@ 2017-04-18 14:26 Max Ivanov
  2017-04-19  2:29 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Max Ivanov @ 2017-04-18 14:26 UTC (permalink / raw)
  To: git

Hi All,

I am using git 2.12.0 and it leaves no MERGE_HEAD once octopus merge
failed with conflicts. Is it intentional? Files have conflicts markers
and once resolved `git commit` creates just a normal commit, which is
very inconvenient and confusing.

Thanks

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

* Re: no MERGE_HEAD after octopus merge failure
  2017-04-18 14:26 no MERGE_HEAD after octopus merge failure Max Ivanov
@ 2017-04-19  2:29 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2017-04-19  2:29 UTC (permalink / raw)
  To: Max Ivanov; +Cc: git

Max Ivanov <ivanov.maxim@gmail.com> writes:

> I am using git 2.12.0 and it leaves no MERGE_HEAD once octopus merge
> failed with conflicts. Is it intentional? Files have conflicts markers
> and once resolved `git commit` creates just a normal commit, which is
> very inconvenient and confusing.

I suspect you got these lines in the error message, which you didn't
read:

    Automated merge did not work.
    Should not be doing an octopus.

Octopus is designed to be done only for simple conflict-less merges,
because it makes later bisection inherently (read: not fault of the
tool, but a natural consequence of the shape of the resulting
history) less efficient.  It might have been better if we chose to
(1) refuse octopus merge if the working tree before "git merge"
starts is not clean, and(2) automatically run "git reset --hard"
when failing an octopus issuing the above error message.  But we
didn't, so you'd need to do "git reset --hard" and merge the tips
one by one, not making an octopus.



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

end of thread, other threads:[~2017-04-19  2:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-18 14:26 no MERGE_HEAD after octopus merge failure Max Ivanov
2017-04-19  2:29 ` Junio C Hamano

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).