mirror of
https://github.com/git/git.git
synced 2024-11-18 06:54:55 +01:00
9af3589e0e
because we will need to get more information from this function in some later patches. The new "int *count" parameter gives the number of commits left after the skipped commit have been filtered out. The new "int *skipped_first" parameter tells us if the first commit in the list has been skipped. Note that using this parameter also changes the behavior of the function if the first commit is indeed skipped. Because we assume that in this case we will want all the filtered commits, not just the first one, even if "show_all" is not set. So using a not NULL "skipped_first" parameter really means that we plan to choose to test another commit than the first non skipped one if the first commit in the list is skipped. That in turn means that, in case the first commit is skipped, we have to return a fully filtered list. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
36 lines
900 B
C
36 lines
900 B
C
#ifndef BISECT_H
|
|
#define BISECT_H
|
|
|
|
extern struct commit_list *find_bisection(struct commit_list *list,
|
|
int *reaches, int *all,
|
|
int find_all);
|
|
|
|
extern struct commit_list *filter_skipped(struct commit_list *list,
|
|
struct commit_list **tried,
|
|
int show_all,
|
|
int *count,
|
|
int *skipped_first);
|
|
|
|
extern void print_commit_list(struct commit_list *list,
|
|
const char *format_cur,
|
|
const char *format_last);
|
|
|
|
/* bisect_show_flags flags in struct rev_list_info */
|
|
#define BISECT_SHOW_ALL (1<<0)
|
|
#define BISECT_SHOW_TRIED (1<<1)
|
|
|
|
struct rev_list_info {
|
|
struct rev_info *revs;
|
|
int bisect_show_flags;
|
|
int show_timestamp;
|
|
int hdr_termination;
|
|
const char *header_prefix;
|
|
};
|
|
|
|
extern int show_bisect_vars(struct rev_list_info *info, int reaches, int all);
|
|
|
|
extern int bisect_next_all(const char *prefix);
|
|
|
|
extern int estimate_bisect_steps(int all);
|
|
|
|
#endif
|