git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, Emily Shaffer <emilyshaffer@google.com>,
	Felipe Contreras <felipe.contreras@gmail.com>
Subject: Re: fc/pull-merge-rebase, was Re: What's cooking in git.git (Dec 2020, #01; Tue, 8)
Date: Thu, 10 Dec 2020 05:46:31 +0100 (CET)	[thread overview]
Message-ID: <nycvar.QRO.7.76.6.2012100543020.25979@tvgsbejvaqbjf.bet> (raw)
In-Reply-To: <nycvar.QRO.7.76.6.2012100507450.25979@tvgsbejvaqbjf.bet>

Hi Junio,

On Thu, 10 Dec 2020, Johannes Schindelin wrote:

> On Wed, 9 Dec 2020, Junio C Hamano wrote:
>
> > Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> >
> > > On Tue, 8 Dec 2020, Junio C Hamano wrote:
> > >
> > >> * fc/pull-merge-rebase (2020-12-08) 19 commits
> > >>  - future: pull: enable ff-only mode by default
> > >>  - pull: advice of future changes
> > >>  - pull: add pull.mode=ff-only
> > >>  - pull: add pull.mode
> > >>  - pull: trivial memory fix
> > >>  - test: pull-options: revert unnecessary changes
> > >>  - test: merge-pull-config: trivial cleanup
> > >>  - pull: move configurations fetches
> > >>  - rebase: add REBASE_DEFAULT
> > >>  - pull: show warning with --ff
> > >>  - pull: introduce --merge option
> > >>  - pull: trivial whitespace style fix
> > >>  - pull: display default warning only when non-ff
> > >>  - pull: move default warning
> > >>  - pull: trivial cleanup
> > >>  - pull: cleanup autostash check
> > >>  - pull: refactor fast-forward check
> > >>  - pull: improve default warning
> > >>  - doc: pull: explain what is a fast-forward
> > >>
> > >>  When a user does not tell "git pull" to use rebase or merge, the
> > >>  command gives a loud message telling a user to choose between
> > >>  rebase or merge but creates a merge anyway, forcing users who would
> > >>  want to rebase to redo the operation.  Fix this by (1) tightening
> > >>  the condition to give the message---there is no reason to stop or
> > >>  force the user to choose between rebase or merge if the history
> > >>  fast-forwards, and (2) failing the operation when the history does
> > >>  not fast-forward, instead of making a merge, in such a case.
> > >
> > > Despite what the commit message of the tip commit says, it is not "time to
> > > flip the switch and make ff-only the default" because it breaks our very
> > > own test suite left and right. See for yourself:

BTW I suspect that the test failures point to shortcomings in the patch
series that should be addressed anyway. I saw at least one obvious
omission: when `git pull -s <strategy>` is used, I find it relatively
obvious that the user wanted that to imply `--merge`. Yet t4013 fails
thusly:

	+ git pull -s ours . side
	From .
	 * branch            side       -> FETCH_HEAD
	fatal: The pull was not fast-forward, please either merge or rebase.

It is test breakages like these which make me believe even more strongly
than before that it is really reasonable for contributors to make sure
that their patches pass the CI build before asking for reviews.

Ciao,
Dscho

  reply	other threads:[~2020-12-10 15:06 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 [this message]
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
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=nycvar.QRO.7.76.6.2012100543020.25979@tvgsbejvaqbjf.bet \
    --to=johannes.schindelin@gmx.de \
    --cc=emilyshaffer@google.com \
    --cc=felipe.contreras@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.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
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).