Re: [PATCH v2 0/7] Drop support for git rebase --preserve-merges
- From
Alban Gruin <alban.gruin@gmail.com>
- Date
- Sep 4, 2021, 22:30 UTC
- Message-ID
- <62fbd389-28f5-76e5-d3f3-5510415a7bf5@gmail.com>
- In-Reply-To
- <pull.195.v2.git.1630497435.gitgitgadget@gmail.com>
Hi Johannes,
Le 01/09/2021 à 13:57, Johannes Schindelin via GitGitGadget a écrit :
Show 18 quoted lines
> In 427c3bd28ab (rebase: deprecate --preserve-merges, 2019-03-11) (which was > included in v2.22.0), we officially deprecated the --preserve-merges > backend. Over two years later, it is time to drop that backend, and here is > a patch series that does just that. > > Changes since v1: > > * Rebased onto v2.33.0 > > Johannes Schindelin (7): > t5520: do not use `pull.rebase=preserve` > remote: warn about unhandled branch.<name>.rebase values > tests: stop testing `git rebase --preserve-merges` > pull: remove support for `--rebase=preserve` > rebase: drop support for `--preserve-merges` > git-svn: drop support for `--preserve-merges` > rebase: drop the internal `rebase--interactive` command >
This is good.
preserve-merge is the only user of `rebase--interactive'. In builtin/rebase.c, it is the only producer of the following actions:
- ACTION_SHORTEN_OIDS - ACTION_EXPAND_OIDS - ACTION_CHECK_TODO_LIST - ACTION_REARRANGE_SQUASH - ACTION_ADD_EXEC
Which in turn, are the only reason for these functions to exist:
- transform_todo_file() - check_todo_list_from_file() (from the sequencer) - rearrange_squash_in_todo_file() - add_exec_commands()
This is from a cursory glance, it may go a bit deeper.
Should we remove these as well?
Alban