mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
commit-reach: prepare in_merge_bases[_many] to handle any repo
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
21a9651ba3
commit
4d5430f747
@@ -27,8 +27,16 @@ struct commit_list *repo_get_merge_bases_many_dirty(struct repository *r,
|
||||
struct commit_list *get_octopus_merge_bases(struct commit_list *in);
|
||||
|
||||
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(struct commit *commit, struct commit *reference);
|
||||
int repo_in_merge_bases(struct repository *r,
|
||||
struct commit *commit,
|
||||
struct commit *reference);
|
||||
int repo_in_merge_bases_many(struct repository *r,
|
||||
struct commit *commit,
|
||||
int nr_reference, struct commit **reference);
|
||||
#ifndef NO_THE_REPOSITORY_COMPATIBILITY_MACROS
|
||||
#define in_merge_bases(c1, c2) repo_in_merge_bases(the_repository, c1, c2)
|
||||
#define in_merge_bases_many(c1, n, cs) repo_in_merge_bases_many(the_repository, c1, n, cs)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Takes a list of commits and returns a new list where those
|
||||
|
||||
Reference in New Issue
Block a user