git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Felipe Contreras <felipe.contreras@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: "Theodore Y. Ts'o" <tytso@mit.edu>,
	Johannes Schindelin <Johannes.Schindelin@gmx.de>,
	Git <git@vger.kernel.org>,
	Emily Shaffer <emilyshaffer@google.com>
Subject: Re: fc/pull-merge-rebase, was Re: What's cooking in git.git (Dec 2020, #01; Tue, 8)
Date: Fri, 11 Dec 2020 08:10:48 -0600	[thread overview]
Message-ID: <CAMP44s1MMGN-uUf0NFBrmza0n-p0+evTqFBBM5YqdQapEVy-TQ@mail.gmail.com> (raw)
In-Reply-To: <xmqqim98inml.fsf@gitster.c.googlers.com>

On Fri, Dec 11, 2020 at 5:32 AM Junio C Hamano <gitster@pobox.com> wrote:
>
> Felipe Contreras <felipe.contreras@gmail.com> writes:
>
> > On Thu, Dec 10, 2020 at 12:28 PM Junio C Hamano <gitster@pobox.com> wrote:
> > ...
> >> how much damage are we causing to
> >> existing users who expect the command to work the way it currently
> >> does?
> >
> > Zero. Because my proposal does *not* make the pull fail, it merely
> > prints a warning that it will change in the future.
>
> The approach to hold the "future" patch of and keep giving a
> "warning" is still likely to cause damage to people like Ted and
> Dscho (both gave examples of workflowsand automation that currently
> happily creating merges as the user expects, while the user just
> ignores the warning, without being configured at all), when finally
> the "future" patch (after fixing the test breakages, of course)
> lands.

That's right. But it doesn't have to land.

If after seeing the warning too many people complain about the
upcoming change, we can backtrack and decide not to pull the trigger.

> They just ignored the current loud messages---I do not see
> any reason to expect the updated "warning" would have any effect on
> them and help them to prepare for the future default change.

Nobody has offered them the chance to set "pull.mode=ff-only".

So how do you know they will not take the offer of something they
haven't been offered yet?

There's only one way to know.

> It is either being dishonest or deliberatly closing eyes to say
> "Zero" after hearing what they said, I would have to say.

It is a fact that a different warning (which is what I'm proposing)
will not affect them. There's no two ways about it.

Moreover, Ts'o said that he is already typing "git pull --rebase", so
he won't be affected.

We can leave this warning indefinitely; one year, two years... until
v3.0 is released. As much time as is needed, and after ten years
decide we don't want to pull the trigger after all.

Take a look at what happened with `merge.defaultToUpstream`. You
introduced it in 2011 after others and I suggested it:

93e535a5b7 (merge: merge with the default upstream branch without
argument, 2011-03-23)

And it was not actually made the default until 2014:

a01f7f2ba0 (merge: enable defaulttoupstream by default, 2014-04-20)

But *only* after we were confident this is what users actually wanted.

This gives us the best of all worlds; 1) a configuration that is sane
and potentially most people want to use, and they can use, as an
opt-in, 2) a potential to flip the switch and make this behavior the
default any time we want (after it has been extensively tested), and
3) the potential to backtrack and leave it forever as an option, and
never make it a default.

Cheers.

-- 
Felipe Contreras

  reply	other threads:[~2020-12-12  1:00 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-09  1:31 What's cooking in git.git (Dec 2020, #01; Tue, 8) Junio C Hamano
2020-12-09  1:41 ` Taylor Blau
2020-12-10  2:02   ` Jonathan Tan
2020-12-09  2:45 ` Elijah Newren
2020-12-09  4:22   ` Junio C Hamano
2020-12-09 23:02     ` Taylor Blau
2020-12-10  0:57       ` Junio C Hamano
2020-12-10  2:57   ` Jonathan Tan
2020-12-09 14:09 ` fc/pull-merge-rebase, was " Johannes Schindelin
2020-12-09 21:28   ` Junio C Hamano
2020-12-10  0:31     ` Felipe Contreras
2020-12-10  4:40     ` Johannes Schindelin
2020-12-10  4:46       ` Johannes Schindelin
2020-12-10 15:11         ` Felipe Contreras
2020-12-10 15:27     ` Theodore Y. Ts'o
2020-12-10 18:28       ` Junio C Hamano
2020-12-11  1:33         ` Felipe Contreras
2020-12-11  7:17           ` Junio C Hamano
2020-12-11 14:10             ` Felipe Contreras [this message]
2020-12-11 22:09             ` Theodore Y. Ts'o
2020-12-12  0:43               ` Felipe Contreras
2020-12-10  0:27   ` Felipe Contreras
2020-12-11  5:59     ` Junio C Hamano
2020-12-09 14:11 ` js/init-defaultbranch-advice, " Johannes Schindelin
2020-12-09 21:57   ` Junio C Hamano
2020-12-10  4:54     ` Johannes Schindelin
2020-12-10 18:33       ` Junio C Hamano
2020-12-11  0:03         ` Felipe Contreras
2020-12-10  3:56 ` bc/rev-parse-path-format, " Johannes Schindelin
2020-12-10 18:34   ` 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

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

  git send-email \
    --in-reply-to=CAMP44s1MMGN-uUf0NFBrmza0n-p0+evTqFBBM5YqdQapEVy-TQ@mail.gmail.com \
    --to=felipe.contreras@gmail.com \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=emilyshaffer@google.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=tytso@mit.edu \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).