git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Elijah Newren <newren@gmail.com>
To: Jeff King <peff@peff.net>
Cc: Dmitry Marakasov <amdmi3@amdmi3.ru>,
	Alex Henrie <alexhenrie24@gmail.com>,
	Git Mailing List <git@vger.kernel.org>
Subject: Re: pull.rebase config option broken in 2.33.1
Date: Fri, 26 Nov 2021 21:26:55 -0800	[thread overview]
Message-ID: <CABPp-BGDFiAF=M=n8Ah7LZXk-f75NezF0F=BPD44a4fMrtsD-w@mail.gmail.com> (raw)
In-Reply-To: <YaG8gUnikxtQs5zx@coredump.intra.peff.net>

On Fri, Nov 26, 2021 at 9:05 PM Jeff King <peff@peff.net> wrote:
>
> On Fri, Nov 26, 2021 at 02:43:44PM -0800, Elijah Newren wrote:
>
> > On Fri, Nov 26, 2021 at 1:45 PM Jeff King <peff@peff.net> wrote:
> > >
> > > On Fri, Nov 26, 2021 at 04:44:52PM -0500, Jeff King wrote:
> > >
> > > > +cc Alex and Elijah from the original 3d5fc24dae (pull: abort if
> > > > --ff-only is given and fast-forwarding is impossible, 2021-07-21) in
> > > > case they have further thoughts, but I _think_ this is working as
> > > > designed.
> > >
> > > Whoops, forgot the cc. Original message in full below.
> >
> > I believe this was already fixed in 2.34.1 in commit ea1954af77
> > ("pull: should be noop when already-up-to-date", 2021-11-17).
>
> I thought that at first, too, but this case is a bit different:
>
> > > > In the bug I linked (and what got fixed in 2.34.1), the issue is that
> > > > when the local branch is ahead of the remote, we don't say "up to date",
> > > > but complain about fast-forwards.
> > > >
> > > > It's hard to tell from the output above, but it looks like you have a
> > > > case where there are new commits both locally and on the remote? In
> > > > which case a rebase would work just fine.
>
> I think the key thing here is that (AFAICT) the behavior is unchanged
> unless the user has set pull.ff=only explicitly.

Ah, I see there were two parts to their report, one of which is the
issue fixed in 2.34.1.  I'll respond to his original email and ask if
he has pull.ff=only set and explain how that interacts with
pull.rebase.

  reply	other threads:[~2021-11-27  5:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-02 13:58 pull.rebase config option broken in 2.33.1 Dmitry Marakasov
2021-11-02 14:20 ` Jeff King
2021-11-26 18:05   ` Dmitry Marakasov
2021-11-26 21:44     ` Jeff King
2021-11-26 21:45       ` Jeff King
2021-11-26 22:43         ` Elijah Newren
2021-11-27  5:05           ` Jeff King
2021-11-27  5:26             ` Elijah Newren [this message]
2021-12-02 15:26         ` Dmitry Marakasov
2021-12-02 16:54           ` Elijah Newren
2021-11-27  5:27 ` Elijah Newren

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='CABPp-BGDFiAF=M=n8Ah7LZXk-f75NezF0F=BPD44a4fMrtsD-w@mail.gmail.com' \
    --to=newren@gmail.com \
    --cc=alexhenrie24@gmail.com \
    --cc=amdmi3@amdmi3.ru \
    --cc=git@vger.kernel.org \
    --cc=peff@peff.net \
    /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).