Christian Couder | a2ad79c | 2009-03-26 05:55:24 +0100 | [diff] [blame] | 1 | #ifndef BISECT_H |
| 2 | #define BISECT_H |
| 3 | |
Elijah Newren | ef3ca95 | 2018-08-15 10:54:05 -0700 | [diff] [blame] | 4 | struct commit_list; |
Nguyễn Thái Ngọc Duy | 69d2cfe | 2018-11-10 06:48:59 +0100 | [diff] [blame] | 5 | struct repository; |
Elijah Newren | ef3ca95 | 2018-08-15 10:54:05 -0700 | [diff] [blame] | 6 | |
Martin Ågren | 24d707f | 2017-11-05 21:24:28 +0100 | [diff] [blame] | 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); |
Christian Couder | a2ad79c | 2009-03-26 05:55:24 +0100 | [diff] [blame] | 16 | |
Christian Couder | 9518864 | 2009-03-26 05:55:49 +0100 | [diff] [blame] | 17 | extern struct commit_list *filter_skipped(struct commit_list *list, |
| 18 | struct commit_list **tried, |
Christian Couder | 9af3589 | 2009-06-06 06:41:33 +0200 | [diff] [blame] | 19 | int show_all, |
| 20 | int *count, |
| 21 | int *skipped_first); |
Christian Couder | 9518864 | 2009-03-26 05:55:49 +0100 | [diff] [blame] | 22 | |
Christian Couder | 37c4c38 | 2009-03-29 11:55:43 +0200 | [diff] [blame] | 23 | #define BISECT_SHOW_ALL (1<<0) |
Nguyễn Thái Ngọc Duy | 9899372 | 2012-02-28 21:00:00 +0700 | [diff] [blame] | 24 | #define REV_LIST_QUIET (1<<1) |
Christian Couder | 37c4c38 | 2009-03-29 11:55:43 +0200 | [diff] [blame] | 25 | |
Christian Couder | d797257 | 2009-04-06 22:28:00 +0200 | [diff] [blame] | 26 | struct rev_list_info { |
| 27 | struct rev_info *revs; |
Nguyễn Thái Ngọc Duy | 9899372 | 2012-02-28 21:00:00 +0700 | [diff] [blame] | 28 | int flags; |
Christian Couder | d797257 | 2009-04-06 22:28:00 +0200 | [diff] [blame] | 29 | int show_timestamp; |
| 30 | int hdr_termination; |
| 31 | const char *header_prefix; |
| 32 | }; |
| 33 | |
Nguyễn Thái Ngọc Duy | 69d2cfe | 2018-11-10 06:48:59 +0100 | [diff] [blame] | 34 | extern int bisect_next_all(struct repository *r, |
| 35 | const char *prefix, |
| 36 | int no_checkout); |
Christian Couder | 1bf072e | 2009-03-26 05:55:54 +0100 | [diff] [blame] | 37 | |
Christian Couder | 1c87654 | 2009-04-19 11:55:38 +0200 | [diff] [blame] | 38 | extern int estimate_bisect_steps(int all); |
| 39 | |
Antoine Delaite | cb46d63 | 2015-06-29 17:40:30 +0200 | [diff] [blame] | 40 | extern void read_bisect_terms(const char **bad, const char **good); |
| 41 | |
Pranit Bauva | fb71a32 | 2017-09-29 06:49:39 +0000 | [diff] [blame] | 42 | extern int bisect_clean_state(void); |
| 43 | |
Christian Couder | a2ad79c | 2009-03-26 05:55:24 +0100 | [diff] [blame] | 44 | #endif |