[PATCH 0/3] rebase: learn --keep-base
- From
Denton Liu <liu.denton@gmail.com>
- Date
- Mar 23, 2019, 15:25 UTC
- Message-ID
- <cover.1553354374.git.liu.denton@gmail.com>
This series teaches rebase the --keep-base option.
'git rebase --keep-base <upstream>' is equivalent to 'git rebase --onto <upstream>... <upstream>' or 'git rebase --onto $(git merge-base <upstream> HEAD) <upstream>' .
This seems to be a common case that people (including myself!) run into; I was able to find these StackOverflow posts about this use case:
* https://stackoverflow.com/questions/53234798/can-i-rebase-on-a-branchs-fork-point-without-explicitly-specifying-the-parent * https://stackoverflow.com/questions/41529128/how-do-you-rebase-only-changes-between-two-branches-into-another-branch * https://stackoverflow.com/a/4207357
Denton Liu (3): rebase: teach rebase --keep-base t3416: test rebase --keep-base git-rebase.txt: document --keep-base option
Documentation/git-rebase.txt | 12 +++++-- builtin/rebase.c | 25 ++++++++++++-- t/t3416-rebase-onto-threedots.sh | 57 ++++++++++++++++++++++++++++++++ 3 files changed, 88 insertions(+), 6 deletions(-)
-- 2.21.0.512.g57bf1b23e1