diff options
| author | Scott J. Goldman <scottjg@github.com> | 2012-11-27 16:36:50 -0800 |
|---|---|---|
| committer | Scott J. Goldman <scottjg@github.com> | 2012-11-28 18:54:56 -0800 |
| commit | bff53e5405e686f78e1ae81a4521566e3c67b5df (patch) | |
| tree | abe7ecd8e54cfb8005291952452c9edb2cb1b4e3 /include/git2 | |
| parent | 693021262ba0eeac2923bbce1b2262717019c807 (diff) | |
| download | libgit2-bff53e5405e686f78e1ae81a4521566e3c67b5df.tar.gz | |
Add initial implementation of ahead-behind count
Diffstat (limited to 'include/git2')
| -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 |
