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

Re: [PATCH v7 1/1] pull: add ff-only option

From
Jeff King <peff@peff.net>
Date
Nov 24, 2020, 01:45 UTC
Message-ID
<X7xlz8NAnsh4SE9l@coredump.intra.peff.net>
In-Reply-To
<CAMP44s3Y3BEbPM_69uxmQWiBq2CqwBo4w13M43WvU4nUQZha8g@mail.gmail.com>
On Mon, Nov 23, 2020 at 05:51:42PM -0600, Felipe Contreras wrote:
Show 14 quoted lines
> > On the other hand, it looks quite funny for that single variable
> > that controls the way how pull works, whether rebase or merge is
> > used, is pull.REBASE.
> 
> Which is precisely why I wanted to rename it to pull.mode.
> 
> In my option git pull should have three main modes:
> 
> 1. fast-forward only
> 2. merge
> 3. rebase
> 
> The fast-forward only mode can be considered a merge, or a rebase,
> doesn't matter.

I agree that is much nicer. I'd worry a bit though that it may be confusing to users to have this new mode option _and_ the existing pull.rebase and pull.ff options, which overlap (but not completely). It might be something we could solve with good documentation, though.

-Peff
Previous: Felipe ContrerasNext: Felipe Contreras
Message 7 of 11 in “Reject non-ff pulls by default”
  1. 0/1 Reject non-ff pulls by defaultFelipe Contreras, Nov 23, 2020
  2. 1/1 pull: add ff-only optionFelipe Contreras, Nov 23, 2020
  3. Felipe ContrerasNov 23, 2020
  4. Alex HenrieNov 23, 2020
  5. Junio C HamanoNov 23, 2020
  6. Felipe ContrerasNov 23, 2020
  7. Jeff KingNov 24, 2020
  8. Felipe ContrerasNov 24, 2020
  9. Raymond E. PascoNov 24, 2020
  10. Alex HenrieNov 24, 2020
  11. Felipe ContrerasNov 24, 2020

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.