builtin/merge.c: drop a parameter that is never used
[git/git.git] / sequencer.h
CommitLineData
26ae337b
RR
1#ifndef SEQUENCER_H
2#define SEQUENCER_H
3
4#define SEQ_DIR "sequencer"
26ae337b
RR
5#define SEQ_HEAD_FILE "sequencer/head"
6#define SEQ_TODO_FILE "sequencer/todo"
7#define SEQ_OPTS_FILE "sequencer/opts"
8
bab4d109
BC
9#define APPEND_SIGNOFF_DEDUP (1u << 0)
10
043a4492
RR
11enum replay_action {
12 REPLAY_REVERT,
13 REPLAY_PICK
14};
15
16enum replay_subcommand {
17 REPLAY_NONE,
18 REPLAY_REMOVE_STATE,
19 REPLAY_CONTINUE,
20 REPLAY_ROLLBACK
21};
22
23struct replay_opts {
24 enum replay_action action;
25 enum replay_subcommand subcommand;
26
27 /* Boolean options */
28 int edit;
29 int record_origin;
30 int no_commit;
31 int signoff;
32 int allow_ff;
33 int allow_rerere_auto;
df478b74 34 int allow_empty;
4bee9584 35 int allow_empty_message;
b27cfb0d 36 int keep_redundant_commits;
043a4492
RR
37
38 int mainline;
39
40 /* Merge strategy */
41 const char *strategy;
42 const char **xopts;
43 size_t xopts_nr, xopts_alloc;
44
45 /* Only used by REPLAY_NONE */
46 struct rev_info *revs;
47};
48
043a4492
RR
49int sequencer_pick_revisions(struct replay_opts *opts);
50
5ed75e2a
MV
51extern const char sign_off_header[];
52
bab4d109 53void append_signoff(struct strbuf *msgbuf, int ignore_footer, unsigned flag);
5ed75e2a 54
26ae337b 55#endif