MCPcopy Create free account
hub / github.com/git/git / check_ancestors

Function check_ancestors

bisect.c:890–908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

888}
889
890static 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

Callers 1

Calls 5

bisect_rev_setupFunction · 0.85
bisect_commonFunction · 0.85
clear_commit_marks_manyFunction · 0.85
release_revisionsFunction · 0.85
strvec_clearFunction · 0.85

Tested by

no test coverage detected