blob: a5d9248a47675194e7e0d16aed37018cbb67eb33 [file] [log] [blame]
Christian Coudera2ad79c2009-03-26 05:55:24 +01001#ifndef BISECT_H
2#define BISECT_H
3
Martin Ågren24d707f2017-11-05 21:24:28 +01004/*
5 * Find bisection. If something is found, `reaches` will be the number of
6 * commits that the best commit reaches. `all` will be the count of
7 * non-SAMETREE commits. If nothing is found, `list` will be NULL.
8 * Otherwise, it will be either all non-SAMETREE commits or the single
9 * best commit, as chosen by `find_all`.
10 */
11extern void find_bisection(struct commit_list **list, int *reaches, int *all,
12 int find_all);
Christian Coudera2ad79c2009-03-26 05:55:24 +010013
Christian Couder95188642009-03-26 05:55:49 +010014extern struct commit_list *filter_skipped(struct commit_list *list,
15 struct commit_list **tried,
Christian Couder9af35892009-06-06 06:41:33 +020016 int show_all,
17 int *count,
18 int *skipped_first);
Christian Couder95188642009-03-26 05:55:49 +010019
Christian Couder37c4c382009-03-29 11:55:43 +020020#define BISECT_SHOW_ALL (1<<0)
Nguyễn Thái Ngọc Duy98993722012-02-28 21:00:00 +070021#define REV_LIST_QUIET (1<<1)
Christian Couder37c4c382009-03-29 11:55:43 +020022
Christian Couderd7972572009-04-06 22:28:00 +020023struct rev_list_info {
24 struct rev_info *revs;
Nguyễn Thái Ngọc Duy98993722012-02-28 21:00:00 +070025 int flags;
Christian Couderd7972572009-04-06 22:28:00 +020026 int show_timestamp;
27 int hdr_termination;
28 const char *header_prefix;
29};
30
Jon Seymourfee92fc2011-08-04 22:01:00 +100031extern int bisect_next_all(const char *prefix, int no_checkout);
Christian Couder1bf072e2009-03-26 05:55:54 +010032
Christian Couder1c876542009-04-19 11:55:38 +020033extern int estimate_bisect_steps(int all);
34
Antoine Delaitecb46d632015-06-29 17:40:30 +020035extern void read_bisect_terms(const char **bad, const char **good);
36
Pranit Bauvafb71a322017-09-29 06:49:39 +000037extern int bisect_clean_state(void);
38
Christian Coudera2ad79c2009-03-26 05:55:24 +010039#endif