]>
Commit | Line | Data |
---|---|---|
26ae337b RR |
1 | #ifndef SEQUENCER_H |
2 | #define SEQUENCER_H | |
3 | ||
8a2a0f53 | 4 | const char *git_path_seq_dir(void); |
26ae337b | 5 | |
bab4d109 BC |
6 | #define APPEND_SIGNOFF_DEDUP (1u << 0) |
7 | ||
043a4492 RR |
8 | enum replay_action { |
9 | REPLAY_REVERT, | |
10 | REPLAY_PICK | |
11 | }; | |
12 | ||
13 | enum replay_subcommand { | |
14 | REPLAY_NONE, | |
15 | REPLAY_REMOVE_STATE, | |
16 | REPLAY_CONTINUE, | |
17 | REPLAY_ROLLBACK | |
18 | }; | |
19 | ||
20 | struct replay_opts { | |
21 | enum replay_action action; | |
22 | enum replay_subcommand subcommand; | |
23 | ||
24 | /* Boolean options */ | |
25 | int edit; | |
26 | int record_origin; | |
27 | int no_commit; | |
28 | int signoff; | |
29 | int allow_ff; | |
30 | int allow_rerere_auto; | |
df478b74 | 31 | int allow_empty; |
4bee9584 | 32 | int allow_empty_message; |
b27cfb0d | 33 | int keep_redundant_commits; |
043a4492 RR |
34 | |
35 | int mainline; | |
36 | ||
3253553e NV |
37 | const char *gpg_sign; |
38 | ||
043a4492 RR |
39 | /* Merge strategy */ |
40 | const char *strategy; | |
41 | const char **xopts; | |
42 | size_t xopts_nr, xopts_alloc; | |
43 | ||
44 | /* Only used by REPLAY_NONE */ | |
45 | struct rev_info *revs; | |
46 | }; | |
ee624c0d | 47 | #define REPLAY_OPTS_INIT { -1, -1 } |
043a4492 | 48 | |
043a4492 RR |
49 | int sequencer_pick_revisions(struct replay_opts *opts); |
50 | ||
5ed75e2a MV |
51 | extern const char sign_off_header[]; |
52 | ||
bab4d109 | 53 | void append_signoff(struct strbuf *msgbuf, int ignore_footer, unsigned flag); |
75c961b7 | 54 | void append_conflicts_hint(struct strbuf *msgbuf); |
5ed75e2a | 55 | |
26ae337b | 56 | #endif |