2009-03-26 04:55:24 +00:00
|
|
|
#ifndef BISECT_H
|
|
|
|
#define BISECT_H
|
2018-08-15 17:54:05 +00:00
|
|
|
|
|
|
|
struct commit_list;
|
2018-11-10 05:48:59 +00:00
|
|
|
struct repository;
|
2009-03-26 04:55:24 +00:00
|
|
|
|
2017-11-05 20:24:28 +00:00
|
|
|
/*
|
|
|
|
* Find bisection. If something is found, `reaches` will be the number of
|
|
|
|
* commits that the best commit reaches. `all` will be the count of
|
|
|
|
* non-SAMETREE commits. If nothing is found, `list` will be NULL.
|
|
|
|
* Otherwise, it will be either all non-SAMETREE commits or the single
|
|
|
|
* best commit, as chosen by `find_all`.
|
|
|
|
*/
|
2019-04-29 08:28:14 +00:00
|
|
|
void find_bisection(struct commit_list **list, int *reaches, int *all,
|
2019-04-29 08:28:23 +00:00
|
|
|
int find_all);
|
2009-03-26 04:55:24 +00:00
|
|
|
|
2019-04-29 08:28:14 +00:00
|
|
|
struct commit_list *filter_skipped(struct commit_list *list,
|
2019-04-29 08:28:23 +00:00
|
|
|
struct commit_list **tried,
|
|
|
|
int show_all,
|
|
|
|
int *count,
|
|
|
|
int *skipped_first);
|
2009-03-26 04:55:49 +00:00
|
|
|
|
2009-03-29 09:55:43 +00:00
|
|
|
#define BISECT_SHOW_ALL (1<<0)
|
2012-02-28 14:00:00 +00:00
|
|
|
#define REV_LIST_QUIET (1<<1)
|
2009-03-29 09:55:43 +00:00
|
|
|
|
2009-04-06 20:28:00 +00:00
|
|
|
struct rev_list_info {
|
|
|
|
struct rev_info *revs;
|
2012-02-28 14:00:00 +00:00
|
|
|
int flags;
|
2009-04-06 20:28:00 +00:00
|
|
|
int show_timestamp;
|
|
|
|
int hdr_termination;
|
|
|
|
const char *header_prefix;
|
|
|
|
};
|
|
|
|
|
2019-04-29 08:28:14 +00:00
|
|
|
int bisect_next_all(struct repository *r,
|
2019-04-29 08:28:23 +00:00
|
|
|
const char *prefix,
|
|
|
|
int no_checkout);
|
2009-03-26 04:55:54 +00:00
|
|
|
|
2019-04-29 08:28:14 +00:00
|
|
|
int estimate_bisect_steps(int all);
|
2009-04-19 09:55:38 +00:00
|
|
|
|
2019-04-29 08:28:14 +00:00
|
|
|
void read_bisect_terms(const char **bad, const char **good);
|
2015-06-29 15:40:30 +00:00
|
|
|
|
2019-04-29 08:28:14 +00:00
|
|
|
int bisect_clean_state(void);
|
2017-09-29 06:49:39 +00:00
|
|
|
|
2009-03-26 04:55:24 +00:00
|
|
|
#endif
|