summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-05-25 16:28:53 +0200
committernulltoken <emeric.fermas@gmail.com>2012-06-07 16:25:37 +0200
commitb46bdb2204ce5f73af998a9e126109a6c065b7c7 (patch)
treed89690517e4030e77baa14f17f824cb1cb02185b /include/git2
parent6183f0e2b2a42d6715f3d0d85fbc41d170328ad1 (diff)
downloadlibgit2-b46bdb2204ce5f73af998a9e126109a6c065b7c7.tar.gz
merge: Expose git_merge_base_many()
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/merge.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/git2/merge.h b/include/git2/merge.h
index 5a0b2e7f..c80803d3 100644
--- a/include/git2/merge.h
+++ b/include/git2/merge.h
@@ -30,6 +30,16 @@ GIT_BEGIN_DECL
*/
GIT_EXTERN(int) git_merge_base(git_oid *out, git_repository *repo, git_oid *one, git_oid *two);
+/**
+ * Find a merge base given a list of commits
+ *
+ * @param out the OID of a merge base considering all the commits
+ * @param repo the repository where the commits exist
+ * @param input_array oids of the commits
+ * @param length The number of commits in the provided `input_array`
+ */
+GIT_EXTERN(int) git_merge_base_many(git_oid *out, git_repository *repo, const git_oid input_array[], size_t length);
+
/** @} */
GIT_END_DECL
#endif