summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-01-05 21:28:30 +0000
committerCarlos Martín Nieto <cmn@dwim.me>2015-01-05 21:28:30 +0000
commit239bdc57617271b577a9cbb7727e332a8aa1a07c (patch)
tree3152f10eed8c849748b29bc2442ccf5279896971 /include
parentc8b64f70e056e915fcb3695cbb9dee5843017b60 (diff)
parent5e44d9bcb6d5b20922f49b1913723186f8ced8b5 (diff)
downloadlibgit2-239bdc57617271b577a9cbb7727e332a8aa1a07c.tar.gz
Merge pull request #2799 from ethomson/merge_doc
Better document `git_merge_commits`
Diffstat (limited to 'include')
-rw-r--r--include/git2/merge.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/git2/merge.h b/include/git2/merge.h
index 09900f12b..40330d0d8 100644
--- a/include/git2/merge.h
+++ b/include/git2/merge.h
@@ -479,6 +479,10 @@ GIT_EXTERN(int) git_merge_trees(
* or checked out. If the index is to be converted to a tree, the caller
* should resolve any conflicts that arose as part of the merge.
*
+ * The merge performed uses the first common ancestor, unlike the
+ * `git-merge-recursive` strategy, which may produce an artificial common
+ * ancestor tree when there are multiple ancestors.
+ *
* The returned index must be freed explicitly with `git_index_free`.
*
* @param out pointer to store the index result in
@@ -501,6 +505,10 @@ GIT_EXTERN(int) git_merge_commits(
* to the index. Callers should inspect the repository's index after this
* completes, resolve any conflicts and prepare a commit.
*
+ * The merge performed uses the first common ancestor, unlike the
+ * `git-merge-recursive` strategy, which may produce an artificial common
+ * ancestor tree when there are multiple ancestors.
+ *
* For compatibility with git, the repository is put into a merging
* state. Once the commit is done (or if the uses wishes to abort),
* you should clear this state by calling