rebase--interactive: move rearrange_squash_in_todo_file()
As rearrange_squash_in_todo_file() is only needed inside of rebase--interactive.c for `rebase -p', it is moved there from sequencer.c. The parameter r (repository) is dropped along the way, and the error handling is slightly improved. 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
1ba204de69
commit
79d7e883bb
@ -153,7 +153,7 @@ int complete_action(struct repository *r, struct replay_opts *opts, unsigned fla
|
||||
const char *shortrevisions, const char *onto_name,
|
||||
const char *onto, const char *orig_head, struct string_list *commands,
|
||||
unsigned autosquash, struct todo_list *todo_list);
|
||||
int rearrange_squash_in_todo_file(struct repository *r);
|
||||
int todo_list_rearrange_squash(struct todo_list *todo_list);
|
||||
|
||||
extern const char sign_off_header[];
|
||||
|
||||
|
Reference in New Issue
Block a user