diff options
author | Alban Gruin <alban.gruin@gmail.com> | 2018-08-10 19:51:35 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-10 21:56:22 +0300 |
commit | a9f5476fbca515171e42a4e06b584a9241341ae9 (patch) | |
tree | c735c2ecd646c8b50b181065d1494891d1f5e744 /rebase-interactive.h | |
parent | 4df66c40b08931eb224964f12decbb0f660cf932 (diff) |
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>
Diffstat (limited to 'rebase-interactive.h')
-rw-r--r-- | rebase-interactive.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rebase-interactive.h b/rebase-interactive.h index 155219e742d..d33f3176b72 100644 --- a/rebase-interactive.h +++ b/rebase-interactive.h @@ -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 |