sequencer: refactor transform_todos() to work on a todo_list
[gitweb.git] / rebase-interactive.c
index 68aff1dac28878f2f9c010459bf5f4362322bd3f..842fa07e7e2b80abc4599ecb16d21c0270436d87 100644 (file)
@@ -69,7 +69,7 @@ int edit_todo_list(struct repository *r, unsigned flags)
 
        strbuf_release(&buf);
 
-       transform_todos(r, flags | TODO_LIST_SHORTEN_IDS);
+       transform_todo_file(r, flags | TODO_LIST_SHORTEN_IDS);
 
        if (strbuf_read_file(&buf, todo_file, 0) < 0)
                return error_errno(_("could not read '%s'."), todo_file);
@@ -85,7 +85,7 @@ int edit_todo_list(struct repository *r, unsigned flags)
        if (launch_sequence_editor(todo_file, NULL, NULL))
                return -1;
 
-       transform_todos(r, flags & ~(TODO_LIST_SHORTEN_IDS));
+       transform_todo_file(r, flags & ~(TODO_LIST_SHORTEN_IDS));
 
        return 0;
 }