summaryrefslogtreecommitdiff
path: root/sequencer.h
diff options
context:
space:
mode:
authorAlban Gruin <alban.gruin@gmail.com>2019-03-05 20:18:01 +0100
committerJunio C Hamano <gitster@pobox.com>2019-03-07 09:17:57 +0900
commitddb81e50724002645d7ec7d9ffdb714d02a47759 (patch)
treea7ab39d1ae267659d0ebabdd8f55977242fe4c20 /sequencer.h
parent6bfeb7f1b503cf3fa0fd5690c0c98a9813c7c875 (diff)
downloadgit-ddb81e50724002645d7ec7d9ffdb714d02a47759.tar.gz
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>
Diffstat (limited to 'sequencer.h')
-rw-r--r--sequencer.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/sequencer.h b/sequencer.h
index 13c5676c24..fb31a30d15 100644
--- a/sequencer.h
+++ b/sequencer.h
@@ -64,9 +64,6 @@ struct replay_opts {
};
#define REPLAY_OPTS_INIT { .action = -1, .current_fixups = STRBUF_INIT }
-int write_message(const void *buf, size_t len, const char *filename,
- int append_eol);
-
/*
* Note that ordering matters in this enum. Not only must it match the mapping
* of todo_command_info (in sequencer.c), it is also divided into several