summaryrefslogtreecommitdiff
path: root/sequencer.h
diff options
context:
space:
mode:
authorLiam Beguin <liambeguin@gmail.com>2017-12-05 17:52:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-12-05 18:20:51 (GMT)
commit313a48eaca58ecd170bef9e6a5a55001c7511f08 (patch)
tree11574a33a7c05498d764cde69a6406e7e130ff40 /sequencer.h
parentd80fc29367a6cf92792db6e3d1b5ce2ae2d81de8 (diff)
downloadgit-313a48eaca58ecd170bef9e6a5a55001c7511f08.zip
git-313a48eaca58ecd170bef9e6a5a55001c7511f08.tar.gz
git-313a48eaca58ecd170bef9e6a5a55001c7511f08.tar.bz2
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.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sequencer.h b/sequencer.h
index 4f7f2c9..68284e9 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);