]> git.ipfire.org Git - thirdparty/git.git/commit
rebase --keep-base: imply --reapply-cherry-picks
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Mon, 17 Oct 2022 13:17:44 +0000 (13:17 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Oct 2022 18:53:03 +0000 (11:53 -0700)
commitce5238a690821d1de230091dd6c9c13a99ed6752
tree41fd3107108a93cd90c4a5d82f8bef65df5c7930
parentd42c9ffa0fa169ea51c971d1143b3f20d5a32d83
rebase --keep-base: imply --reapply-cherry-picks

As --keep-base does not rebase the branch it is confusing if it
removes commits that have been cherry-picked to the upstream branch.
As --reapply-cherry-picks is not supported by the "apply" backend this
commit ensures that cherry-picks are reapplied by forcing the upstream
commit to match the onto commit unless --no-reapply-cherry-picks is
given.

Reported-by: Philippe Blain <levraiphilippeblain@gmail.com>
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rebase.txt
builtin/rebase.c
t/t3416-rebase-onto-threedots.sh