sequencer: support a new action: 'interactive rebase'
[alt-git.git] / sequencer.h
blobcb21cfddeec5db9cf74b37d179ea0b1f8c9b147f
1 #ifndef SEQUENCER_H
2 #define SEQUENCER_H
4 const char *git_path_seq_dir(void);
6 #define APPEND_SIGNOFF_DEDUP (1u << 0)
8 enum replay_action {
9 REPLAY_REVERT,
10 REPLAY_PICK,
11 REPLAY_INTERACTIVE_REBASE
14 struct replay_opts {
15 enum replay_action action;
17 /* Boolean options */
18 int edit;
19 int record_origin;
20 int no_commit;
21 int signoff;
22 int allow_ff;
23 int allow_rerere_auto;
24 int allow_empty;
25 int allow_empty_message;
26 int keep_redundant_commits;
28 int mainline;
30 char *gpg_sign;
32 /* Merge strategy */
33 char *strategy;
34 char **xopts;
35 size_t xopts_nr, xopts_alloc;
37 /* Only used by REPLAY_NONE */
38 struct rev_info *revs;
40 #define REPLAY_OPTS_INIT { -1 }
42 int sequencer_pick_revisions(struct replay_opts *opts);
43 int sequencer_continue(struct replay_opts *opts);
44 int sequencer_rollback(struct replay_opts *opts);
45 int sequencer_remove_state(struct replay_opts *opts);
47 extern const char sign_off_header[];
49 void append_signoff(struct strbuf *msgbuf, int ignore_footer, unsigned flag);
50 void append_conflicts_hint(struct strbuf *msgbuf);
52 #endif