2009-03-26 05:55:24 +01:00
|
|
|
#ifndef BISECT_H
|
|
|
|
#define BISECT_H
|
|
|
|
|
2017-11-05 21:24:28 +01: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`.
|
|
|
|
*/
|
|
|
|
extern void find_bisection(struct commit_list **list, int *reaches, int *all,
|
|
|
|
int find_all);
|
2009-03-26 05:55:24 +01:00
|
|
|
|
2009-03-26 05:55:49 +01:00
|
|
|
extern struct commit_list *filter_skipped(struct commit_list *list,
|
|
|
|
struct commit_list **tried,
|
2009-06-06 06:41:33 +02:00
|
|
|
int show_all,
|
|
|
|
int *count,
|
|
|
|
int *skipped_first);
|
2009-03-26 05:55:49 +01:00
|
|
|
|
2009-03-29 11:55:43 +02:00
|
|
|
#define BISECT_SHOW_ALL (1<<0)
|
2012-02-28 15:00:00 +01:00
|
|
|
#define REV_LIST_QUIET (1<<1)
|
2009-03-29 11:55:43 +02:00
|
|
|
|
2009-04-06 22:28:00 +02:00
|
|
|
struct rev_list_info {
|
|
|
|
struct rev_info *revs;
|
2012-02-28 15:00:00 +01:00
|
|
|
int flags;
|
2009-04-06 22:28:00 +02:00
|
|
|
int show_timestamp;
|
|
|
|
int hdr_termination;
|
|
|
|
const char *header_prefix;
|
|
|
|
};
|
|
|
|
|
2011-08-04 14:01:00 +02:00
|
|
|
extern int bisect_next_all(const char *prefix, int no_checkout);
|
2009-03-26 05:55:54 +01:00
|
|
|
|
2009-04-19 11:55:38 +02:00
|
|
|
extern int estimate_bisect_steps(int all);
|
|
|
|
|
2015-06-29 17:40:30 +02:00
|
|
|
extern void read_bisect_terms(const char **bad, const char **good);
|
|
|
|
|
2009-03-26 05:55:24 +01:00
|
|
|
#endif
|