sequencer: refactor append_todo_help() to write its message to a buffer
This refactors append_todo_help() to write its message to a buffer instead of the todo-list. This is needed for the rewrite of complete_action(), which will come after the next commit. As rebase--helper still needs the file manipulation part of append_todo_help(), it is extracted to a temporary function, append_todo_help_to_file(). This function will go away after the rewrite of complete_action(). Signed-off-by: Alban Gruin <alban.gruin@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
4df66c40b0
commit
a9f5476fbc
@ -1,7 +1,9 @@
|
||||
#ifndef REBASE_INTERACTIVE_H
|
||||
#define REBASE_INTERACTIVE_H
|
||||
|
||||
int append_todo_help(unsigned edit_todo, unsigned keep_empty);
|
||||
void append_todo_help(unsigned edit_todo, unsigned keep_empty,
|
||||
struct strbuf *buf);
|
||||
int append_todo_help_to_file(unsigned edit_todo, unsigned keep_empty);
|
||||
int edit_todo_list(unsigned flags);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user