@ -8,17 +8,23 @@ struct commit_list;
struct contains_cache;
struct contains_cache;
struct ref_filter;
struct ref_filter;
struct commit_list *get_merge_bases_many(struct commit *one,
struct commit_list *repo_get_merge_bases(struct repository *r,
int n,
struct commit *rev1,
struct commit **twos);
struct commit *rev2);
struct commit_list *get_merge_bases_many_dirty(struct commit *one,
struct commit_list *repo_get_merge_bases_many(struct repository *r,
int n,
struct commit *one, int n,
struct commit **twos);
struct commit **twos);
struct commit_list *get_merge_bases(struct commit *one, struct commit *two);
struct commit_list *get_octopus_merge_bases(struct commit_list *in);
/* To be used only when object flags after this call no longer matter */
/* To be used only when object flags after this call no longer matter */
struct commit_list *get_merge_bases_many_dirty(struct commit *one, int n, struct commit **twos);
struct commit_list *repo_get_merge_bases_many_dirty(struct repository *r,
struct commit *one, int n,
struct commit **twos);
#ifndef NO_THE_REPOSITORY_COMPATIBILITY_MACROS
#define get_merge_bases(r1, r2) repo_get_merge_bases(the_repository, r1, r2)
#define get_merge_bases_many(one, n, two) repo_get_merge_bases_many(the_repository, one, n, two)
#define get_merge_bases_many_dirty(one, n, twos) repo_get_merge_bases_many_dirty(the_repository, one, n, twos)
#endif
struct commit_list *get_octopus_merge_bases(struct commit_list *in);
int is_descendant_of(struct commit *commit, struct commit_list *with_commit);
int is_descendant_of(struct commit *commit, struct commit_list *with_commit);
int in_merge_bases_many(struct commit *commit, int nr_reference, struct commit **reference);
int in_merge_bases_many(struct commit *commit, int nr_reference, struct commit **reference);