diff options
author | Liam Beguin <liambeguin@gmail.com> | 2017-12-05 20:52:32 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-05 21:20:51 +0300 |
commit | 313a48eaca58ecd170bef9e6a5a55001c7511f08 (patch) | |
tree | 11574a33a7c05498d764cde69a6406e7e130ff40 /sequencer.h | |
parent | d80fc29367a6cf92792db6e3d1b5ce2ae2d81de8 (diff) |
rebase -i: update functions to use a flags parameter
Update functions used in the rebase--helper so that they take a generic
'flags' parameter instead of a growing list of options.
Signed-off-by: Liam Beguin <liambeguin@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sequencer.h')
-rw-r--r-- | sequencer.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sequencer.h b/sequencer.h index 4f7f2c93f8..68284e9762 100644 --- a/sequencer.h +++ b/sequencer.h @@ -45,10 +45,12 @@ int sequencer_continue(struct replay_opts *opts); int sequencer_rollback(struct replay_opts *opts); int sequencer_remove_state(struct replay_opts *opts); -int sequencer_make_script(int keep_empty, FILE *out, - int argc, const char **argv); +#define TODO_LIST_KEEP_EMPTY (1U << 0) +#define TODO_LIST_SHORTEN_IDS (1U << 1) +int sequencer_make_script(FILE *out, int argc, const char **argv, + unsigned flags); -int transform_todos(int shorten_ids); +int transform_todos(unsigned flags); int check_todo_list(void); int skip_unnecessary_picks(void); int rearrange_squash(void); |