]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
rebase-interactive: use todo_list_write_to_file() in edit_todo_list()
authorAlban Gruin <alban.gruin@gmail.com>
Tue, 5 Mar 2019 19:18:01 +0000 (20:18 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Mar 2019 00:17:57 +0000 (09:17 +0900)
commitddb81e50724002645d7ec7d9ffdb714d02a47759
treea7ab39d1ae267659d0ebabdd8f55977242fe4c20
parent6bfeb7f1b503cf3fa0fd5690c0c98a9813c7c875
rebase-interactive: use todo_list_write_to_file() in edit_todo_list()

Just like complete_action(), edit_todo_list() used a
function (transform_todo_file()) that read the todo list from the disk
and wrote it back, resulting in useless disk accesses.

This changes edit_todo_list() to call directly todo_list_write_to_file()
instead.

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