mirror of
https://github.com/git/git.git
synced 2024-12-01 05:54:16 +08:00
a930eb03a8
edit_todo_list() is changed to work on a todo_list, and to handle the initial edition of the todo list (ie. making a backup of the todo list). It does not check for dropped commits yet, as todo_list_check() does not take the commits that have already been processed by the rebase (ie. the todo list is edited in the middle of a rebase session). Signed-off-by: Alban Gruin <alban.gruin@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
17 lines
523 B
C
17 lines
523 B
C
#ifndef REBASE_INTERACTIVE_H
|
|
#define REBASE_INTERACTIVE_H
|
|
|
|
struct strbuf;
|
|
struct repository;
|
|
struct todo_list;
|
|
|
|
void append_todo_help(unsigned keep_empty, int command_count,
|
|
const char *shortrevisions, const char *shortonto,
|
|
struct strbuf *buf);
|
|
int edit_todo_list(struct repository *r, struct todo_list *todo_list,
|
|
struct todo_list *new_todo, const char *shortrevisions,
|
|
const char *shortonto, unsigned flags);
|
|
int todo_list_check(struct todo_list *old_todo, struct todo_list *new_todo);
|
|
|
|
#endif
|