tests: introduce test_ln_s_add
[git/debian.git] / sequencer.h
blob1fc22dcabe132cd437e7b0d3c56588c8cd7e63f2
1 #ifndef SEQUENCER_H
2 #define SEQUENCER_H
4 #define SEQ_DIR "sequencer"
5 #define SEQ_HEAD_FILE "sequencer/head"
6 #define SEQ_TODO_FILE "sequencer/todo"
7 #define SEQ_OPTS_FILE "sequencer/opts"
9 #define APPEND_SIGNOFF_DEDUP (1u << 0)
11 enum replay_action {
12 REPLAY_REVERT,
13 REPLAY_PICK
16 enum replay_subcommand {
17 REPLAY_NONE,
18 REPLAY_REMOVE_STATE,
19 REPLAY_CONTINUE,
20 REPLAY_ROLLBACK
23 struct replay_opts {
24 enum replay_action action;
25 enum replay_subcommand subcommand;
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;
34 int allow_empty;
35 int allow_empty_message;
36 int keep_redundant_commits;
38 int mainline;
40 /* Merge strategy */
41 const char *strategy;
42 const char **xopts;
43 size_t xopts_nr, xopts_alloc;
45 /* Only used by REPLAY_NONE */
46 struct rev_info *revs;
49 int sequencer_pick_revisions(struct replay_opts *opts);
51 extern const char sign_off_header[];
53 void append_signoff(struct strbuf *msgbuf, int ignore_footer, unsigned flag);
55 #endif