]> git.ipfire.org Git - thirdparty/git.git/blame - sequencer.h
longest_ancestor_length(): use string_list_split()
[thirdparty/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
043a4492
RR
9enum replay_action {
10 REPLAY_REVERT,
11 REPLAY_PICK
12};
13
14enum replay_subcommand {
15 REPLAY_NONE,
16 REPLAY_REMOVE_STATE,
17 REPLAY_CONTINUE,
18 REPLAY_ROLLBACK
19};
20
21struct replay_opts {
22 enum replay_action action;
23 enum replay_subcommand subcommand;
24
25 /* Boolean options */
26 int edit;
27 int record_origin;
28 int no_commit;
29 int signoff;
30 int allow_ff;
31 int allow_rerere_auto;
df478b74 32 int allow_empty;
4bee9584 33 int allow_empty_message;
b27cfb0d 34 int keep_redundant_commits;
043a4492
RR
35
36 int mainline;
37
38 /* Merge strategy */
39 const char *strategy;
40 const char **xopts;
41 size_t xopts_nr, xopts_alloc;
42
43 /* Only used by REPLAY_NONE */
44 struct rev_info *revs;
45};
46
043a4492
RR
47int sequencer_pick_revisions(struct replay_opts *opts);
48
5ed75e2a
MV
49extern const char sign_off_header[];
50
51void append_signoff(struct strbuf *msgbuf, int ignore_footer);
52
26ae337b 53#endif