t3404: decouple some test cases from outcomes of previous test cases
commit6c8fbae619da9ab2066c0d0e74de79f90c998118
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 31 Oct 2018 20:01:59 +0000 (31 13:01 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 2 Nov 2018 02:27:30 +0000 (2 11:27 +0900)
tree7e620ca9d8876a01810ac4aa458f2310d7b3b0b7
parent4ede3d42dfb57f9a41ac96a1f216c62eb7566cc2
t3404: decouple some test cases from outcomes of previous test cases

Originally, the `--preserve-merges` option of the `git rebase` command
piggy-backed on top of the `--interactive` feature. For that reason, the
early test cases were added to the very same test script that contains
the `git rebase -i` tests: `t3404-rebase-interactive.sh`.

However, since c42abfe7857 (rebase: introduce a dedicated backend for
--preserve-merges, 2018-05-28), the `--preserve-merges` feature got its
own backend, in preparation for converting the rest of the
`--interactive` code to built-in code, written in C rather than shell.

The reason why the `--preserve-merges` feature was not converted at the
same time is that we have something much better now: `--rebase-merges`.
That option intends to supersede `--preserve-merges`, and we will
probably deprecate the latter soon.

Once `--preserve-merges` has been deprecated for a good amount of time,
it will be time to remove it, and along with it, its tests.

In preparation for that, let's make the rest of the test cases in
`t3404-rebase-interactive.sh` independent of the test cases dedicated to
`--preserve-merges`.

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