Re: [PATCH 8/9] pull: update docs & code for option compatibility with rebasing
- From
Elijah Newren <newren@gmail.com>
- Date
- Jul 21, 2021, 00:44 UTC
- Message-ID
- <CABPp-BGkiNfy4s9uxFWPYfqVRLj3rT10pJuARW9e3tPrkDbS9w@mail.gmail.com>
- In-Reply-To
- <xmqq5yx4frlc.fsf@gitster.g>
On Tue, Jul 20, 2021 at 5:17 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 29 quoted lines
> > "Elijah Newren via GitGitGadget" <gitgitgadget@gmail.com> writes: > > > From: Elijah Newren <newren@gmail.com> > > > > git-pull.txt includes merge-options.txt, which is written assuming > > merges will happen. git-pull has allowed rebases for many years; update > > the documentation to reflect that. > > Yes, as I might have said elsewhere recently, "pull --rebase" has > been afterthought and the way how it interacts with many niche > "features" of "git pull" has never been designed but started with > whatever the code happened to do and then fixed/tweaked as people > found it suboptimal. Hopefully with this series we are covering > these interactions and whipping them into a much better shape with > coherent semantics. > > > diff --git a/Documentation/git-pull.txt b/Documentation/git-pull.txt > > index cad3f6bfcee..6e6e95a7595 100644 > > --- a/Documentation/git-pull.txt > > +++ b/Documentation/git-pull.txt > > @@ -125,6 +125,8 @@ When false, merge the current branch into the upstream branch. > > + > > When `interactive`, enable the interactive mode of rebase. > > + > > +Note that `--ff-only` takes precedence over any `--rebase` flag. > > ++ > > "`ff-only` overrides any `--rebase` flag"?
Yeah, ignore that, I had already ripped it out after your comments on patch 1 yesterday. I've also got more changes to the pull documentation to try to do more of what your sentence above says, "covering these interactions and whipping them into a much better shape."
Show 7 quoted lines
> > @@ -58,6 +61,10 @@ could instead be resolved as a fast-forward. > > + > > With `--ff-only`, resolve the merge as a fast-forward when possible. > > When not possible, refuse to merge and exit with a non-zero status. > > This part may want to become conditional with git-pull[] to use a > verb different than "merge"?
Yep, that's one of the other changes I'm adding and will send out soon.
Show 6 quoted lines
> > +ifdef::git-pull[] > > ++ > > +Note that `--no-ff` and `--ff` are ignored when rebasing is requested. > > +endif::git-pull[] > > OK.