]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
sequencer: refactor transform_todos() to work on a todo_list
authorAlban Gruin <alban.gruin@gmail.com>
Tue, 29 Jan 2019 15:01:47 +0000 (16:01 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Jan 2019 20:09:24 +0000 (12:09 -0800)
commitcbef27d61cd6ae4f1ecae054eb9df06e898148d8
tree67d0455608129847b21198766a18724dec4b30c3
parent6ad656db9b2d2426a0a884b431e8adc9877101bc
sequencer: refactor transform_todos() to work on a todo_list

This refactors transform_todos() to work on a todo_list.  The function
is renamed todo_list_transform().

As rebase -p still need to check the todo list from the disk, a new
function is introduced, transform_todo_file().  It is still used by
complete_action() and edit_todo_list() for now, but they will be
replaced in a future commit.

todo_list_transform() is not a static function, because it will be used
by edit_todo_list() from rebase-interactive.c in a future commit.

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
sequencer.c
sequencer.h