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