vendor/libgit2/include/git2/merge.h in rugged-0.21.0 vs vendor/libgit2/include/git2/merge.h in rugged-0.21.1b0
- old
+ new
@@ -8,10 +8,11 @@
#define INCLUDE_git_merge_h__
#include "common.h"
#include "types.h"
#include "oid.h"
+#include "oidarray.h"
#include "checkout.h"
#include "index.h"
/**
* @file git2/merge.h
@@ -314,9 +315,24 @@
* @param two the other commit
* @return 0 on success, GIT_ENOTFOUND if not found or error code
*/
GIT_EXTERN(int) git_merge_base(
git_oid *out,
+ git_repository *repo,
+ const git_oid *one,
+ const git_oid *two);
+
+/**
+ * Find merge bases between two commits
+ *
+ * @param out array in which to store the resulting ids
+ * @param repo the repository where the commits exist
+ * @param one one of the commits
+ * @param two the other commit
+ * @return 0 on success, GIT_ENOTFOUND if not found or error code
+ */
+GIT_EXTERN(int) git_merge_bases(
+ git_oidarray *out,
git_repository *repo,
const git_oid *one,
const git_oid *two);
/**