1#ifndef SEQUENCER_H
2#define SEQUENCER_H
34
const char *git_path_seq_dir(void);
56
#define APPEND_SIGNOFF_DEDUP (1u << 0)
78
enum replay_action {
9REPLAY_REVERT,
10REPLAY_PICK,
11REPLAY_INTERACTIVE_REBASE
12};
1314
struct replay_opts {
15enum replay_action action;
1617
/* Boolean options */
18int edit;
19int record_origin;
20int no_commit;
21int signoff;
22int allow_ff;
23int allow_rerere_auto;
24int allow_empty;
25int allow_empty_message;
26int keep_redundant_commits;
27int verbose;
2829
int mainline;
3031
char *gpg_sign;
3233
/* Merge strategy */
34char *strategy;
35char **xopts;
36size_t xopts_nr, xopts_alloc;
3738
/* Only used by REPLAY_NONE */
39struct rev_info *revs;
40};
41#define REPLAY_OPTS_INIT { -1 }
4243
int sequencer_pick_revisions(struct replay_opts *opts);
44int sequencer_continue(struct replay_opts *opts);
45int sequencer_rollback(struct replay_opts *opts);
46int sequencer_remove_state(struct replay_opts *opts);
4748
int sequencer_make_script(int keep_empty, FILE *out,
49int argc, const char **argv);
5051
int transform_todo_ids(int shorten_ids);
52int check_todo_list(void);
53int skip_unnecessary_picks(void);
5455
extern const char sign_off_header[];
5657
void append_signoff(struct strbuf *msgbuf, int ignore_footer, unsigned flag);
58void append_conflicts_hint(struct strbuf *msgbuf);
5960
#endif