git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / Atom feed
From: Sergey Organov <sorganov@gmail.com>
To: Igor Djordjevic <igor.d.djordjevic@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>,
	Johannes Schindelin <Johannes.Schindelin@gmx.de>,
	Git Mailing List <git@vger.kernel.org>
Subject: Re: Rebasing evil merges with --rebase-merges
Date: Thu, 16 Jan 2020 10:42:30 +0300
Message-ID: <87h80vg849.fsf@osv.gnss.ru> (raw)
In-Reply-To: <9355c545-08a5-ef63-f7bf-65201d50acc8@gmail.com> (Igor Djordjevic's message of "Wed, 15 Jan 2020 22:23:34 +0100")

Igor Djordjevic <igor.d.djordjevic@gmail.com> writes:

> On 15/01/2020 19:14, Junio C Hamano wrote:
>> 
>> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>> >
>> > Having said that, if you ever find yourself wanting Just One Feature 
>> > in `--rebase-merges` that would make it worthwhile for you to think 
>> > about switching your patch-based workflow to a `rebase -ir`-based 
>> > one, please let me know, and I will try my best to accommodate.
>> 
>> Another thing I noticed was that we may want to attempt to recreate
>> an evil merge and then stop to ask confirmation.  The "rebase -ri" I
>> did to sanity-check my revert for example failed to bring in the
>> change made in the existing evil merge when trying to recreate the
>> merge of the dl/merge-autostash topic into master..pu chain and
>> silently created a fails-to-build-from-the-source tree instead.
>
> FYI (and anyone interested), it`s something we actually brought up 
> some two years ago, at the time of introducing `--rebase-merges` 
> (known as `--recreate-merges` back at the time), see[1].
>
> It ended being a lengthy and heated discussion (inside a few 
> different topics as well, like original RFC[2] and it`s v2 update[3]), 
> myself being guilty for dropping out eventually and not following it 
> through, though, life taking me in another direction at the moment...

For reference, there is a nice summary in "Git Rev News Edition 38":

https://git.github.io/rev_news/2018/04/18/edition-38

> but I still find this functionality to be very useful, not to say 
> essential, even, for reliable complex merge _rebasing_ (meaning 
> keeping "evil merge" changes, too), and not just merge _recreating_ 
> (loosing "evil merge" changes, and worse - doing it silently, as you 
> experienced yourself now as well).

Yeah, dropping user content silently and by default is still the most
weird thing for git to do, be it a merge or not a merge.

As an additional note, I came to conclusion that there is actually no
such thing as "evil merge" that is somehow different from "evil commit"
in general (a commit containing unrelated changes).

Then, as "evil commit" belongs to user domain, we need to finally
realize that "evil merge" belongs entirely to user domain as well, and
thus, as it's out of git domain, we should stop using the term "evil
merge" to excuse any kinds of weird git behaviors.

Regards,
Sergey

  reply index

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-12 16:12 Problems with ra/rebase-i-more-options - should we revert it? Phillip Wood
2020-01-12 17:31 ` Phillip Wood
2020-01-12 18:41   ` Johannes Schindelin
2020-01-17 14:11     ` Phillip Wood
2020-01-20 11:15       ` Johannes Schindelin
2020-01-12 21:12   ` Junio C Hamano
2020-01-13  0:43     ` Junio C Hamano
2020-01-13 18:11       ` Junio C Hamano
2020-01-13 22:03         ` "rebase -ri" (was Re: Problems with ra/rebase-i-more-options - should we revert it?) Junio C Hamano
2020-01-15 14:03           ` Johannes Schindelin
2020-01-15 18:14             ` Junio C Hamano
2020-01-15 21:23               ` Rebasing evil merges with --rebase-merges Igor Djordjevic
2020-01-16  7:42                 ` Sergey Organov [this message]
2020-01-15 22:53               ` "rebase -ri" (was Re: Problems with ra/rebase-i-more-options - should we revert it?) Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h80vg849.fsf@osv.gnss.ru \
    --to=sorganov@gmail.com \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=igor.d.djordjevic@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

git@vger.kernel.org list mirror (unofficial, one of many)

Archives are clonable:
	git clone --mirror https://public-inbox.org/git
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://ou63pmih66umazou.onion/inbox.comp.version-control.git
	nntp://czquwvybam4bgbro.onion/inbox.comp.version-control.git
	nntp://hjrcffqmbrq6wope.onion/inbox.comp.version-control.git
	nntp://news.gmane.io/gmane.comp.version-control.git

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git