]> git.ipfire.org Git - thirdparty/git.git/commit
rebase: cleanup "--exec" option handling
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Thu, 12 Jan 2023 16:50:01 +0000 (16:50 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Jan 2023 20:23:14 +0000 (12:23 -0800)
commite57d2c59377943fed09ec30012634f60788bdfca
treea8fad17600eafeea0c553dc87bb7345cd434290c
parenta38d39a4c50d1275833aba54c4dbdfce9e2e9ca1
rebase: cleanup "--exec" option handling

When handling "--exec" rebase collects the commands into a struct
string_list, then prepends "exec " to each command creating a multi line
string and finally splits that string back into a list of commands. This
is an artifact of the scripted rebase and the need to support "rebase
--preserve-merges". Now that "--preserve-merges" no-longer exists we can
cleanup the way the argument is handled. There is no need to add the
"exec " prefix to the commands as that is added by todo_list_to_strbuf().

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rebase.c
sequencer.c