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

Re: [PATCH] pull: introduce --merge option

From
Alex Henrie <alexhenrie24@gmail.com>
Date
Jun 28, 2021, 03:51 UTC
Message-ID
<CAMMLpeQ9BVNHqk2p748+4+ufuWJ46fYUnVvMvwFPxh3N--ASPg@mail.gmail.com>
In-Reply-To
<20210628031642.699156-1-felipe.contreras@gmail.com>

On Sun, Jun 27, 2021 at 9:16 PM Felipe Contreras <felipe.contreras@gmail.com> wrote:

Show 5 quoted lines
>
> The idea came after a comment from Linus Torvalds regarding what should
> be the default mode of "git pull" and why [1].
>
> [1] https://lore.kernel.org/git/CA+55aFz2Uvq4vmyjJPao5tS-uuVvKm6mbP7Uz8sdq1VMxMGJCw@mail.gmail.com/

Oh wow, I didn't realize that Linus gave his opinion on the subject back in 2013, and he suggested doing nearly exactly what we are trying to do now.

Show 7 quoted lines
> ---no-rebase::
> -       Override earlier --rebase.
> +-m::
> +--merge::
> +       Force a merge.
> ++
> +Previously this was --no-rebase, but that usage has been deprecated.

I don't think --no-rebase should be "deprecated", at least not yet. After all, the equivalent config option is still pull.rebase=false. Also, --merge doesn't necessarily force a merge because it does not imply --no-ff. I would prefer to list --no-rebase, -m, and --merge together on the same line and leave the description alone.

But other than the documentation and the commit message, I like the idea here, and I think it will make Git a lot more user-friendly.

-Alex
Previous: Felipe ContrerasNext: Felipe Contreras
Message 2 of 3 in “pull: introduce --merge option”
  1. pull: introduce --merge optionFelipe Contreras, Jun 28, 2021
  2. Alex HenrieJun 28, 2021
  3. Felipe ContrerasJun 28, 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.