]>
Commit | Line | Data |
---|---|---|
a2ad79ce CC |
1 | #ifndef BISECT_H |
2 | #define BISECT_H | |
ef3ca954 EN |
3 | |
4 | struct commit_list; | |
a2ad79ce | 5 | |
24d707f6 MÅ |
6 | /* |
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 | */ | |
13 | extern void find_bisection(struct commit_list **list, int *reaches, int *all, | |
14 | int find_all); | |
a2ad79ce | 15 | |
95188648 CC |
16 | extern struct commit_list *filter_skipped(struct commit_list *list, |
17 | struct commit_list **tried, | |
9af3589e CC |
18 | int show_all, |
19 | int *count, | |
20 | int *skipped_first); | |
95188648 | 21 | |
37c4c38d | 22 | #define BISECT_SHOW_ALL (1<<0) |
98993722 | 23 | #define REV_LIST_QUIET (1<<1) |
37c4c38d | 24 | |
d797257e CC |
25 | struct rev_list_info { |
26 | struct rev_info *revs; | |
98993722 | 27 | int flags; |
d797257e CC |
28 | int show_timestamp; |
29 | int hdr_termination; | |
30 | const char *header_prefix; | |
31 | }; | |
32 | ||
fee92fc1 | 33 | extern int bisect_next_all(const char *prefix, int no_checkout); |
1bf072e3 | 34 | |
1c876546 CC |
35 | extern int estimate_bisect_steps(int all); |
36 | ||
cb46d630 AD |
37 | extern void read_bisect_terms(const char **bad, const char **good); |
38 | ||
fb71a329 PB |
39 | extern int bisect_clean_state(void); |
40 | ||
a2ad79ce | 41 | #endif |