]>
Commit | Line | Data |
---|---|---|
a2ad79ce CC |
1 | #ifndef BISECT_H |
2 | #define BISECT_H | |
ef3ca954 EN |
3 | |
4 | struct commit_list; | |
69d2cfe6 | 5 | struct repository; |
a2ad79ce | 6 | |
24d707f6 MÅ |
7 | /* |
8 | * Find bisection. If something is found, `reaches` will be the number of | |
9 | * commits that the best commit reaches. `all` will be the count of | |
10 | * non-SAMETREE commits. If nothing is found, `list` will be NULL. | |
11 | * Otherwise, it will be either all non-SAMETREE commits or the single | |
12 | * best commit, as chosen by `find_all`. | |
13 | */ | |
14 | extern void find_bisection(struct commit_list **list, int *reaches, int *all, | |
15 | int find_all); | |
a2ad79ce | 16 | |
95188648 CC |
17 | extern struct commit_list *filter_skipped(struct commit_list *list, |
18 | struct commit_list **tried, | |
9af3589e CC |
19 | int show_all, |
20 | int *count, | |
21 | int *skipped_first); | |
95188648 | 22 | |
37c4c38d | 23 | #define BISECT_SHOW_ALL (1<<0) |
98993722 | 24 | #define REV_LIST_QUIET (1<<1) |
37c4c38d | 25 | |
d797257e CC |
26 | struct rev_list_info { |
27 | struct rev_info *revs; | |
98993722 | 28 | int flags; |
d797257e CC |
29 | int show_timestamp; |
30 | int hdr_termination; | |
31 | const char *header_prefix; | |
32 | }; | |
33 | ||
69d2cfe6 NTND |
34 | extern int bisect_next_all(struct repository *r, |
35 | const char *prefix, | |
36 | int no_checkout); | |
1bf072e3 | 37 | |
1c876546 CC |
38 | extern int estimate_bisect_steps(int all); |
39 | ||
cb46d630 AD |
40 | extern void read_bisect_terms(const char **bad, const char **good); |
41 | ||
fb71a329 PB |
42 | extern int bisect_clean_state(void); |
43 | ||
a2ad79ce | 44 | #endif |