| Ramkumar Ramachandra | 26ae337 | 2011-08-04 10:39:11 | [diff] [blame] | 1 | #ifndef SEQUENCER_H |
| 2 | #define SEQUENCER_H | ||||
| 3 | |||||
| Johannes Schindelin | 8a2a0f5 | 2016-10-14 13:17:12 | [diff] [blame] | 4 | const char *git_path_seq_dir(void); |
| Ramkumar Ramachandra | 26ae337 | 2011-08-04 10:39:11 | [diff] [blame] | 5 | |
| Brandon Casey | bab4d10 | 2013-02-12 10:17:35 | [diff] [blame] | 6 | #define APPEND_SIGNOFF_DEDUP (1u << 0) |
| 7 | |||||
| Ramkumar Ramachandra | 043a449 | 2012-01-11 18:15:57 | [diff] [blame] | 8 | enum replay_action { |
| 9 | REPLAY_REVERT, | ||||
| Johannes Schindelin | 8458395 | 2017-01-02 15:26:28 | [diff] [blame] | 10 | REPLAY_PICK, |
| 11 | REPLAY_INTERACTIVE_REBASE | ||||
| Ramkumar Ramachandra | 043a449 | 2012-01-11 18:15:57 | [diff] [blame] | 12 | }; |
| 13 | |||||
| Ramkumar Ramachandra | 043a449 | 2012-01-11 18:15:57 | [diff] [blame] | 14 | struct replay_opts { |
| 15 | enum replay_action action; | ||||
| Ramkumar Ramachandra | 043a449 | 2012-01-11 18:15:57 | [diff] [blame] | 16 | |
| 17 | /* Boolean options */ | ||||
| 18 | int edit; | ||||
| 19 | int record_origin; | ||||
| 20 | int no_commit; | ||||
| 21 | int signoff; | ||||
| 22 | int allow_ff; | ||||
| 23 | int allow_rerere_auto; | ||||
| Neil Horman | df478b7 | 2012-04-11 20:21:53 | [diff] [blame] | 24 | int allow_empty; |
| Chris Webb | 4bee958 | 2012-08-02 10:38:51 | [diff] [blame] | 25 | int allow_empty_message; |
| Neil Horman | b27cfb0 | 2012-04-20 14:36:15 | [diff] [blame] | 26 | int keep_redundant_commits; |
| Johannes Schindelin | 556907f | 2017-01-02 15:26:53 | [diff] [blame] | 27 | int verbose; |
| Ramkumar Ramachandra | 043a449 | 2012-01-11 18:15:57 | [diff] [blame] | 28 | |
| 29 | int mainline; | ||||
| 30 | |||||
| Johannes Schindelin | 03a4e26 | 2016-10-21 12:24:13 | [diff] [blame] | 31 | char *gpg_sign; |
| Nicolas Vigier | 3253553 | 2014-01-24 00:50:58 | [diff] [blame] | 32 | |
| Ramkumar Ramachandra | 043a449 | 2012-01-11 18:15:57 | [diff] [blame] | 33 | /* Merge strategy */ |
| Johannes Schindelin | 03a4e26 | 2016-10-21 12:24:13 | [diff] [blame] | 34 | char *strategy; |
| 35 | char **xopts; | ||||
| Ramkumar Ramachandra | 043a449 | 2012-01-11 18:15:57 | [diff] [blame] | 36 | size_t xopts_nr, xopts_alloc; |
| 37 | |||||
| 38 | /* Only used by REPLAY_NONE */ | ||||
| 39 | struct rev_info *revs; | ||||
| 40 | }; | ||||
| Johannes Schindelin | 2863584 | 2016-10-21 12:24:55 | [diff] [blame] | 41 | #define REPLAY_OPTS_INIT { -1 } |
| Ramkumar Ramachandra | 043a449 | 2012-01-11 18:15:57 | [diff] [blame] | 42 | |
| Ramkumar Ramachandra | 043a449 | 2012-01-11 18:15:57 | [diff] [blame] | 43 | int sequencer_pick_revisions(struct replay_opts *opts); |
| Johannes Schindelin | 2863584 | 2016-10-21 12:24:55 | [diff] [blame] | 44 | int sequencer_continue(struct replay_opts *opts); |
| 45 | int sequencer_rollback(struct replay_opts *opts); | ||||
| 46 | int sequencer_remove_state(struct replay_opts *opts); | ||||
| Ramkumar Ramachandra | 043a449 | 2012-01-11 18:15:57 | [diff] [blame] | 47 | |
| Miklos Vajna | 5ed75e2 | 2012-09-14 06:52:03 | [diff] [blame] | 48 | extern const char sign_off_header[]; |
| 49 | |||||
| Brandon Casey | bab4d10 | 2013-02-12 10:17:35 | [diff] [blame] | 50 | void append_signoff(struct strbuf *msgbuf, int ignore_footer, unsigned flag); |
| Junio C Hamano | 75c961b | 2014-10-24 18:34:59 | [diff] [blame] | 51 | void append_conflicts_hint(struct strbuf *msgbuf); |
| Miklos Vajna | 5ed75e2 | 2012-09-14 06:52:03 | [diff] [blame] | 52 | |
| Ramkumar Ramachandra | 26ae337 | 2011-08-04 10:39:11 | [diff] [blame] | 53 | #endif |