🌐 AI搜索 & 代理 主页
blob: f885b68395f4bff1ded96c0ab84ed87d164f0c7d [file] [log] [blame]
Ramkumar Ramachandra26ae3372011-08-04 10:39:111#ifndef SEQUENCER_H
2#define SEQUENCER_H
3
Johannes Schindelin8a2a0f52016-10-14 13:17:124const char *git_path_seq_dir(void);
Ramkumar Ramachandra26ae3372011-08-04 10:39:115
Brandon Caseybab4d102013-02-12 10:17:356#define APPEND_SIGNOFF_DEDUP (1u << 0)
7
Ramkumar Ramachandra043a4492012-01-11 18:15:578enum replay_action {
9 REPLAY_REVERT,
Johannes Schindelin84583952017-01-02 15:26:2810 REPLAY_PICK,
11 REPLAY_INTERACTIVE_REBASE
Ramkumar Ramachandra043a4492012-01-11 18:15:5712};
13
Ramkumar Ramachandra043a4492012-01-11 18:15:5714struct replay_opts {
15 enum replay_action action;
Ramkumar Ramachandra043a4492012-01-11 18:15:5716
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 Hormandf478b72012-04-11 20:21:5324 int allow_empty;
Chris Webb4bee9582012-08-02 10:38:5125 int allow_empty_message;
Neil Hormanb27cfb02012-04-20 14:36:1526 int keep_redundant_commits;
Johannes Schindelin556907f2017-01-02 15:26:5327 int verbose;
Ramkumar Ramachandra043a4492012-01-11 18:15:5728
29 int mainline;
30
Johannes Schindelin03a4e262016-10-21 12:24:1331 char *gpg_sign;
Nicolas Vigier32535532014-01-24 00:50:5832
Ramkumar Ramachandra043a4492012-01-11 18:15:5733 /* Merge strategy */
Johannes Schindelin03a4e262016-10-21 12:24:1334 char *strategy;
35 char **xopts;
Ramkumar Ramachandra043a4492012-01-11 18:15:5736 size_t xopts_nr, xopts_alloc;
37
38 /* Only used by REPLAY_NONE */
39 struct rev_info *revs;
40};
Johannes Schindelin28635842016-10-21 12:24:5541#define REPLAY_OPTS_INIT { -1 }
Ramkumar Ramachandra043a4492012-01-11 18:15:5742
Ramkumar Ramachandra043a4492012-01-11 18:15:5743int sequencer_pick_revisions(struct replay_opts *opts);
Johannes Schindelin28635842016-10-21 12:24:5544int sequencer_continue(struct replay_opts *opts);
45int sequencer_rollback(struct replay_opts *opts);
46int sequencer_remove_state(struct replay_opts *opts);
Ramkumar Ramachandra043a4492012-01-11 18:15:5747
Miklos Vajna5ed75e22012-09-14 06:52:0348extern const char sign_off_header[];
49
Brandon Caseybab4d102013-02-12 10:17:3550void append_signoff(struct strbuf *msgbuf, int ignore_footer, unsigned flag);
Junio C Hamano75c961b2014-10-24 18:34:5951void append_conflicts_hint(struct strbuf *msgbuf);
Miklos Vajna5ed75e22012-09-14 06:52:0352
Ramkumar Ramachandra26ae3372011-08-04 10:39:1153#endif