sequencer: refactor sequencer_add_exec_commands() to work on a todo_list
[gitweb.git] / sequencer.h
index 217353e9f0b1996e537799cbe7a1f0d2567aeb4f..87d04a3b9bda8144a48adcf1c30cc6c96dcf4e6a 100644 (file)
@@ -146,12 +146,13 @@ int sequencer_make_script(struct repository *r, FILE *out, int argc,
                          const char **argv,
                          unsigned flags);
 
-int sequencer_add_exec_commands(struct repository *r, const char *command);
+int sequencer_add_exec_commands(struct repository *r,
+                               struct string_list *commands);
 int transform_todo_file(struct repository *r, unsigned flags);
 int check_todo_list_from_file(struct repository *r);
 int complete_action(struct repository *r, struct replay_opts *opts, unsigned flags,
                    const char *shortrevisions, const char *onto_name,
-                   const char *onto, const char *orig_head, const char *cmd,
+                   const char *onto, const char *orig_head, struct string_list *commands,
                    unsigned autosquash);
 int rearrange_squash(struct repository *r);