Thread (66 messages) 66 messages, 9 authors, 2022-10-19

Re: [PATCH 0/5] rebase --keep-base: imply --reapply-cherry-picks and --no-fork-point

From: Johannes Schindelin <hidden>
Date: 2022-08-16 10:22:23

Hi Phillip,

On Mon, 15 Aug 2022, Phillip Wood via GitGitGadget wrote:
A while a go Philippe reported [1] that he was surprised 'git rebase
--keep-base' removed commits that had been cherry-picked upstream even
though to branch was not being rebased.
This has bitten me, too (I did just not get around to reply to Philippe's
mail).
I think it is also surprising if '--keep-base' changes the base of the
branch without '--fork-point' being explicitly given on the command
line. This series therefore changes the default behavior of
'--keep-base' to imply '--reapply-cherry-picks' and '--no-fork-point' so
that the base of the branch is unchanged and no commits are removed.
In my mind, `--keep-base` should always have adjusted the `<upstream>` to
point to the base commit, which is what patch 4/5 does.

So I am very much in favor of this patch series.

Junio seems to be on top of the code review, so I'll avoid stepping on his
toes by adding mine ;-)

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help