diff options
Diffstat (limited to 'include/git2/merge.h')
| -rw-r--r-- | include/git2/merge.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/git2/merge.h b/include/git2/merge.h index 59493969c..928c4758c 100644 --- a/include/git2/merge.h +++ b/include/git2/merge.h @@ -50,6 +50,17 @@ GIT_EXTERN(int) git_merge_base_many( const git_oid input_array[], size_t length); +/** + * Count the number of unique commits between two commit objects + * + * @param ahead number of commits, starting at `one`, unique from commits in `two` + * @param behind number of commits, starting at `two`, unique from commits in `one` + * @param repo the repository where the commits exist + * @param one one of the commits + * @param two the other commit + */ +GIT_EXTERN(int) git_count_ahead_behind(int *ahead, int *behind, git_repository *repo, git_oid *one, git_oid *two); + /** @} */ GIT_END_DECL #endif |
