gitweb: Pass esc_html_hl_regions() options to esc_html()
[git/jnareb-git.git] / sequencer.h
blobbb4b13830e157dafb468f8256bab25110058ba9b
1 #ifndef SEQUENCER_H
2 #define SEQUENCER_H
4 #define SEQ_DIR "sequencer"
5 #define SEQ_HEAD_FILE "sequencer/head"
6 #define SEQ_TODO_FILE "sequencer/todo"
7 #define SEQ_OPTS_FILE "sequencer/opts"
9 enum replay_action {
10 REPLAY_REVERT,
11 REPLAY_PICK
14 enum replay_subcommand {
15 REPLAY_NONE,
16 REPLAY_REMOVE_STATE,
17 REPLAY_CONTINUE,
18 REPLAY_ROLLBACK
21 struct replay_opts {
22 enum replay_action action;
23 enum replay_subcommand subcommand;
25 /* Boolean options */
26 int edit;
27 int record_origin;
28 int no_commit;
29 int signoff;
30 int allow_ff;
31 int allow_rerere_auto;
33 int mainline;
35 /* Merge strategy */
36 const char *strategy;
37 const char **xopts;
38 size_t xopts_nr, xopts_alloc;
40 /* Only used by REPLAY_NONE */
41 struct rev_info *revs;
44 /* Removes SEQ_DIR. */
45 extern void remove_sequencer_state(void);
47 int sequencer_pick_revisions(struct replay_opts *opts);
49 #endif