From: Johannes Schindelin Date: Wed, 25 Apr 2018 12:29:03 +0000 (+0200) Subject: rebase-helper --make-script: introduce a flag to rebase merges X-Git-Tag: v2.18.0-rc0~48^2~8 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/1644c73c6d4fe35d4d3304b9c03c9586de51626f?hp=1644c73c6d4fe35d4d3304b9c03c9586de51626f rebase-helper --make-script: introduce a flag to rebase merges The sequencer just learned new commands intended to recreate branch structure (similar in spirit to --preserve-merges, but with a substantially less-broken design). Let's allow the rebase--helper to generate todo lists making use of these commands, triggered by the new --rebase-merges option. For a commit topology like this (where the HEAD points to C): - A - B - C \ / D the generated todo list would look like this: # branch D pick 0123 A label branch-point pick 1234 D label D reset branch-point pick 2345 B merge -C 3456 D # C To keep things simple, we first only implement support for merge commits with exactly two parents, leaving support for octopus merges to a later patch series. All merge-rebasing todo lists start with a hard-coded `label onto` line. This makes it convenient to refer later on to the revision onto which everything is rebased, e.g. as starting point for branches other than the very first one. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano ---