Merge branch 'jt/fetch-nego-tip' into ab/fetch-nego
[alt-git.git] / bisect.h
bloba5d9248a47675194e7e0d16aed37018cbb67eb33
1 #ifndef BISECT_H
2 #define BISECT_H
4 /*
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`.
11 extern void find_bisection(struct commit_list **list, int *reaches, int *all,
12 int find_all);
14 extern struct commit_list *filter_skipped(struct commit_list *list,
15 struct commit_list **tried,
16 int show_all,
17 int *count,
18 int *skipped_first);
20 #define BISECT_SHOW_ALL (1<<0)
21 #define REV_LIST_QUIET (1<<1)
23 struct rev_list_info {
24 struct rev_info *revs;
25 int flags;
26 int show_timestamp;
27 int hdr_termination;
28 const char *header_prefix;
31 extern int bisect_next_all(const char *prefix, int no_checkout);
33 extern int estimate_bisect_steps(int all);
35 extern void read_bisect_terms(const char **bad, const char **good);
37 extern int bisect_clean_state(void);
39 #endif