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

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

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Nov 23, 2020, 23:02 UTC
Message-ID
<CAMP44s2FRZUvUy+F3banxd9MEdL=RMqEdJL3JLYEGDQkOz3vNA@mail.gmail.com>
In-Reply-To
<20201123224621.2573159-2-felipe.contreras@gmail.com>

On Mon, Nov 23, 2020 at 4:46 PM Felipe Contreras <felipe.contreras@gmail.com> wrote:

Show 21 quoted lines
>
> It is very typical for Git newcomers to inadvertently create merges and
> worse; inadvertently pushing them. This is one of the reasons many
> experienced users prefer to avoid 'git pull', and recommend newcomers to
> avoid it as well.
>
> To avoid these problems, and keep 'git pull' useful, it has been
> suggested that 'git pull' barfs by default if the merge is
> non-fast-forward, which unfortunately would break backwards
> compatibility.
>
> This patch leaves everything in place to enable this new mode, but it
> only gets enabled if the user specifically configures it;
>
>   pull.rebase = ff-only.
>
> Later on this mode can be enabled by default.
>
> For the full discussion you can read:
>
> https://lore.kernel.org/git/5363BB9F.40102@xiplink.com/
Note: Philip Oakley's address was wrong (fixed now).
-- 
Felipe Contreras
Previous: Felipe ContrerasNext: Alex Henrie
Message 3 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.