blob: 34df20935123065b4b253288ea0e22b1721af0e9 [file] [log] [blame]
Christian Coudera2ad79c2009-03-26 05:55:24 +01001#ifndef BISECT_H
2#define BISECT_H
3
Elijah Newrenef3ca952018-08-15 10:54:05 -07004struct commit_list;
5
Martin Ågren24d707f2017-11-05 21:24:28 +01006/*
7 * Find bisection. If something is found, `reaches` will be the number of
8 * commits that the best commit reaches. `all` will be the count of
9 * non-SAMETREE commits. If nothing is found, `list` will be NULL.
10 * Otherwise, it will be either all non-SAMETREE commits or the single
11 * best commit, as chosen by `find_all`.
12 */
13extern void find_bisection(struct commit_list **list, int *reaches, int *all,
14 int find_all);
Christian Coudera2ad79c2009-03-26 05:55:24 +010015
Christian Couder95188642009-03-26 05:55:49 +010016extern struct commit_list *filter_skipped(struct commit_list *list,
17 struct commit_list **tried,
Christian Couder9af35892009-06-06 06:41:33 +020018 int show_all,
19 int *count,
20 int *skipped_first);
Christian Couder95188642009-03-26 05:55:49 +010021
Christian Couder37c4c382009-03-29 11:55:43 +020022#define BISECT_SHOW_ALL (1<<0)
Nguyễn Thái Ngọc Duy98993722012-02-28 21:00:00 +070023#define REV_LIST_QUIET (1<<1)
Christian Couder37c4c382009-03-29 11:55:43 +020024
Christian Couderd7972572009-04-06 22:28:00 +020025struct rev_list_info {
26 struct rev_info *revs;
Nguyễn Thái Ngọc Duy98993722012-02-28 21:00:00 +070027 int flags;
Christian Couderd7972572009-04-06 22:28:00 +020028 int show_timestamp;
29 int hdr_termination;
30 const char *header_prefix;
31};
32
Jon Seymourfee92fc2011-08-04 22:01:00 +100033extern int bisect_next_all(const char *prefix, int no_checkout);
Christian Couder1bf072e2009-03-26 05:55:54 +010034
Christian Couder1c876542009-04-19 11:55:38 +020035extern int estimate_bisect_steps(int all);
36
Antoine Delaitecb46d632015-06-29 17:40:30 +020037extern void read_bisect_terms(const char **bad, const char **good);
38
Pranit Bauvafb71a322017-09-29 06:49:39 +000039extern int bisect_clean_state(void);
40
Christian Coudera2ad79c2009-03-26 05:55:24 +010041#endif