git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: When are you going to stop ignoring pull.mode?

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Jul 17, 2021, 17:57 UTC
Message-ID
<60f31a0ddf7c_25f2208a5@natae.notmuch>
In-Reply-To
<c54fa084-75f4-b775-8ac2-6df3c7a36571@aixigo.com>
Matthias Baumgarten wrote:
Show 52 quoted lines
> On 7/16/21 9:14 PM, Felipe Contreras wrote:
> > Elijah Newren wrote:
> >> It may be a worthy goal, but I cannot implement correct behavior if I
> >> cannot determine what correct behavior is.
> >>
> >> You've only specified how to handle a subset of the valid combinations
> >> in each of your emails, and from those individually or even
> >> collectively I cannot deduce rules for handling the others.  Reading
> >> the dozen+ recent messages in the various recent threads, I think I've
> >> figured out your opinion in all but two cases, but I have no idea your
> >> intent on those two (I would have thought --rebase override there too,
> >> but you excluded that), and I'm rather uncertain I've correctly
> >> understood you for the other ones (I really hope gmail doesn't
> >> whitespace damage the following table):
> >>
> >>     pull.ff  pull.rebase  commandline            action
> >>       *          *        --ff-only --rebase     fast-forward only[1]
> >>       *          *        --rebase --no-ff       rebase[1]
> >>       *          *        --rebase --ff          rebase[1]
> >>       *          *        --ff-only --no-rebase  fast-forward only
> >>       *          *        --no-rebase --no-ff    merge --no-ff
> >>       *          *        --no-rebase --ff       merge --ff
> >>
> >>      <unset>     *        --no-rebase            merge --ff
> >>      only        *        --no-rebase            merge --ff[2]
> >>      false       *        --no-rebase            merge --no-ff
> >>      true        *        --no-rebase            merge --ff
> >>
> >>      <unset>     *        --rebase               rebase
> >>      only        *        --rebase               rebase[2]
> >>      false       *        --rebase               ?[2]
> >>      true        *        --rebase               ?[2]
> >>
> >>       *          *        --ff-only              fast-forward only[1]
> >>
> >>       *       <unset>     --no-ff                merge --no-ff
> >>       *        false      --no-ff                merge --no-ff
> >>       *       !false      --no-ff                rebase (ignore --no-ff)[2][3]
> >>
> >>       *       <unset>     --ff                   merge --ff
> >>       *        false      --ff                   merge --ff
> >>       *       !false      --ff                   rebase (ignore --ff)[2][3]
> 
> What about
> 
>           *       !false      --ff-only              ???
> 
> I think these are conflicting options, see [ ] (the ref without a 
> number). This feels like saying oh, I want to rebase, but I want to 
> fast-forward. What should happen with my local changes then? Could one 
> argue that this should lead to the local changes being rebased on top of 
> the remote?
According to the above it would be a fast-forward only, because:
      *          *        --ff-only              fast-forward only
So the pull would abort f you have local changes.
-- 
Felipe Contreras
Previous: Matthias BaumgartenNext: Junio C Hamano
Message 5 of 10 in “When are you going to stop ignoring pull.mode?”
  1. Felipe ContrerasJul 16, 2021
  2. Bagas SanjayaJul 17, 2021
  3. Felipe ContrerasJul 17, 2021
  4. Matthias BaumgartenJul 17, 2021
  5. Felipe ContrerasJul 17, 2021
  6. Junio C HamanoJul 17, 2021
  7. Felipe ContrerasJul 17, 2021
  8. Matthias BaumgartenJul 19, 2021
  9. Junio C HamanoJul 19, 2021
  10. Felipe ContrerasJul 19, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.