]> git.ipfire.org Git - thirdparty/git.git/blame - sequencer.h
sequencer (rebase -i): implement the 'exec' command
[thirdparty/git.git] / sequencer.h
CommitLineData
26ae337b
RR
1#ifndef SEQUENCER_H
2#define SEQUENCER_H
3
8a2a0f53 4const char *git_path_seq_dir(void);
26ae337b 5
bab4d109
BC
6#define APPEND_SIGNOFF_DEDUP (1u << 0)
7
043a4492
RR
8enum replay_action {
9 REPLAY_REVERT,
84583957
JS
10 REPLAY_PICK,
11 REPLAY_INTERACTIVE_REBASE
043a4492
RR
12};
13
043a4492
RR
14struct replay_opts {
15 enum replay_action action;
043a4492
RR
16
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;
df478b74 24 int allow_empty;
4bee9584 25 int allow_empty_message;
b27cfb0d 26 int keep_redundant_commits;
043a4492
RR
27
28 int mainline;
29
03a4e260 30 char *gpg_sign;
3253553e 31
043a4492 32 /* Merge strategy */
03a4e260
JS
33 char *strategy;
34 char **xopts;
043a4492
RR
35 size_t xopts_nr, xopts_alloc;
36
37 /* Only used by REPLAY_NONE */
38 struct rev_info *revs;
39};
2863584f 40#define REPLAY_OPTS_INIT { -1 }
043a4492 41
043a4492 42int sequencer_pick_revisions(struct replay_opts *opts);
2863584f
JS
43int sequencer_continue(struct replay_opts *opts);
44int sequencer_rollback(struct replay_opts *opts);
45int sequencer_remove_state(struct replay_opts *opts);
043a4492 46
5ed75e2a
MV
47extern const char sign_off_header[];
48
bab4d109 49void append_signoff(struct strbuf *msgbuf, int ignore_footer, unsigned flag);
75c961b7 50void append_conflicts_hint(struct strbuf *msgbuf);
5ed75e2a 51
26ae337b 52#endif