| 888 | } |
| 889 | |
| 890 | static int check_ancestors(struct repository *r, size_t rev_nr, |
| 891 | struct commit **rev, const char *prefix) |
| 892 | { |
| 893 | struct strvec rev_argv = STRVEC_INIT; |
| 894 | struct rev_info revs; |
| 895 | int res; |
| 896 | |
| 897 | bisect_rev_setup(r, &revs, &rev_argv, prefix, "^%s", "%s", 0); |
| 898 | |
| 899 | bisect_common(&revs); |
| 900 | res = (revs.commits != NULL); |
| 901 | |
| 902 | /* Clean up objects used, as they will be reused. */ |
| 903 | clear_commit_marks_many(rev_nr, rev, ALL_REV_FLAGS); |
| 904 | |
| 905 | release_revisions(&revs); |
| 906 | strvec_clear(&rev_argv); |
| 907 | return res; |
| 908 | } |
| 909 | |
| 910 | /* |
| 911 | * "check_good_are_ancestors_of_bad" checks that all "good" revs are |
no test coverage detected