Re: [PATCH v2 4/8] pull: since --ff-only overrides, handle it first
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Jul 21, 2021, 21:18 UTC
- Message-ID
- <60f88f0b8776b_1c9e6920863@natae.notmuch>
- In-Reply-To
- <5f334459-26ef-6bf6-d72e-31564b10cd2c@aixigo.com>
Matthias Baumgarten wrote:
Show 9 quoted lines
> On 7/21/21 3:42 AM, Elijah Newren via GitGitGadget wrote: > > There are both merge and rebase branches in the logic, and previously > > both had to handle fast-forwarding. Merge handled that implicitly > > (because git merge handles it directly), while in rebase it was > > explicit. Given that the --ff-only flag is meant to override any > > --rebase or --no-rebase, make the code reflect that by handling > > --ff-only before the merge-vs-rebase logic. > > Great. That now will work as I would expect it to.
Yes, but what about the current users that have setup pull.ff=only already?
They are already relying on existing behavior.
What do you think users currently expect this to do?
[pull]
ff = only
rebase = truegit pull --no-rebase
-- Felipe Contreras