summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2012-06-18 17:36:14 -0700
committerVicent Martí <vicent@github.com>2012-06-18 17:36:14 -0700
commit31eed56b9e212c92e76db07e8a04184826d269f9 (patch)
treef2e0291f39e77d2a163f1cde3c2d84ae32885c75 /include/git2
parentb93688d06d4128480ef746856532afa1e53d1e23 (diff)
parentb46bdb2204ce5f73af998a9e126109a6c065b7c7 (diff)
downloadlibgit2-31eed56b9e212c92e76db07e8a04184826d269f9.tar.gz
Merge pull request #753 from nulltoken/topic/merge-base-many
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 5a0b2e7f2..c80803d36 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