]> git.ipfire.org Git - thirdparty/git.git/blame - sequencer.h
sequencer: get rid of the subcommand field
[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,
10 REPLAY_PICK
11};
12
043a4492
RR
13struct replay_opts {
14 enum replay_action action;
043a4492
RR
15
16 /* Boolean options */
17 int edit;
18 int record_origin;
19 int no_commit;
20 int signoff;
21 int allow_ff;
22 int allow_rerere_auto;
df478b74 23 int allow_empty;
4bee9584 24 int allow_empty_message;
b27cfb0d 25 int keep_redundant_commits;
043a4492
RR
26
27 int mainline;
28
03a4e260 29 char *gpg_sign;
3253553e 30
043a4492 31 /* Merge strategy */
03a4e260
JS
32 char *strategy;
33 char **xopts;
043a4492
RR
34 size_t xopts_nr, xopts_alloc;
35
36 /* Only used by REPLAY_NONE */
37 struct rev_info *revs;
38};
2863584f 39#define REPLAY_OPTS_INIT { -1 }
043a4492 40
043a4492 41int sequencer_pick_revisions(struct replay_opts *opts);
2863584f
JS
42int sequencer_continue(struct replay_opts *opts);
43int sequencer_rollback(struct replay_opts *opts);
44int sequencer_remove_state(struct replay_opts *opts);
043a4492 45
5ed75e2a
MV
46extern const char sign_off_header[];
47
bab4d109 48void append_signoff(struct strbuf *msgbuf, int ignore_footer, unsigned flag);
75c961b7 49void append_conflicts_hint(struct strbuf *msgbuf);
5ed75e2a 50
26ae337b 51#endif