On Tue, Jul 20, 2021 at 5:17 PM Junio C Hamano <gitster@xxxxxxxxx> wrote: > > "Elijah Newren via GitGitGadget" <gitgitgadget@xxxxxxxxx> writes: > > > From: Elijah Newren <newren@xxxxxxxxx> > > > > 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." > > @@ -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. > > +ifdef::git-pull[] > > ++ > > +Note that `--no-ff` and `--ff` are ignored when rebasing is requested. > > +endif::git-pull[] > > OK.