]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
rebase-interactive: rewrite edit_todo_list() to handle the initial edit
authorAlban Gruin <alban.gruin@gmail.com>
Tue, 5 Mar 2019 19:18:03 +0000 (20:18 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Mar 2019 00:17:57 +0000 (09:17 +0900)
commita930eb03a8299b5b29284dd9e3c253c38187167a
tree701fad4abf3ec0445d84a33158c85bf61d0d3ea0
parentaf1fc3adc5bf0d831ee3c1c8e86c1b7ce59e070e
rebase-interactive: rewrite edit_todo_list() to handle the initial edit

edit_todo_list() is changed to work on a todo_list, and to handle the
initial edition of the todo list (ie. making a backup of the todo
list).

It does not check for dropped commits yet, as todo_list_check() does not
take the commits that have already been processed by the rebase (ie. the
todo list is edited in the middle of a rebase session).

Signed-off-by: Alban Gruin <alban.gruin@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rebase--interactive.c
rebase-interactive.c
rebase-interactive.h
sequencer.c
sequencer.h