diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-07-06 22:09:15 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-07-06 22:09:16 -0700 |
commit | 0258ed1e08e7973f1d6829db8d33109851067a91 (patch) | |
tree | c94e74d689f3b1ab05cf3a14392016795506d899 /commit-reach.h | |
parent | 5c61d10b16ad949af9adf824ae3fd4f62a5142e7 (diff) | |
parent | c1ea625f72110fda87fd225d7dff002befb82d9f (diff) |
Merge branch 'cb/is-descendant-of'
Code clean-up.
* cb/is-descendant-of:
commit-reach: avoid is_descendant_of() shim
Diffstat (limited to 'commit-reach.h')
-rw-r--r-- | commit-reach.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/commit-reach.h b/commit-reach.h index 99a43e8b64..b49ad71a31 100644 --- a/commit-reach.h +++ b/commit-reach.h @@ -27,7 +27,9 @@ 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 repo_is_descendant_of(struct repository *r, + struct commit *commit, + struct commit_list *with_commit); int repo_in_merge_bases(struct repository *r, struct commit *commit, struct commit *reference); |