rebase -i: use the rebase--helper builtin
commit18633e1a22a68bbe8e6311a1039d13ebbf6fd041
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 9 Feb 2017 22:23:11 +0000 (9 23:23 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 Feb 2017 22:55:40 +0000 (9 14:55 -0800)
tree515d4fee7afdd53ebfe544bb9c38394c305d2aa0
parent4557f1add261b70887136498084e7491a3f9535f
rebase -i: use the rebase--helper builtin

Now that the sequencer learned to process a "normal" interactive rebase,
we use it. The original shell script is still used for "non-normal"
interactive rebases, i.e. when --root or --preserve-merges was passed.

Please note that the --root option (via the $squash_onto variable) needs
special handling only for the very first command, hence it is still okay
to use the helper upon continue/skip.

Also please note that the --no-ff setting is volatile, i.e. when the
interactive rebase is interrupted at any stage, there is no record of
it. Therefore, we have to pass it from the shell script to the
rebase--helper.

Note: the test t3404 had to be adjusted because the the error messages
produced by the sequencer comply with our current convention to start with
a lower-case letter.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase--interactive.sh
t/t3404-rebase-interactive.sh