summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-11-20 19:01:42 -0500
committerEdward Thomson <ethomson@microsoft.com>2015-11-25 16:25:47 -0500
commit5b9c63c3f673cbc209e53627be2a0e87c17ccb3c (patch)
tree0d65c9c37a7714ddb6d6896f14c7c925b77e1bb1 /include/git2
parent78859c63442bb367a4d426ec8ee31c82a28a93d7 (diff)
downloadlibgit2-5b9c63c3f673cbc209e53627be2a0e87c17ccb3c.tar.gz
recursive merge: add a recursion limit
Diffstat (limited to 'include/git2')
-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 a272e8be4..af53ead22 100644
--- a/include/git2/merge.h
+++ b/include/git2/merge.h
@@ -265,6 +265,14 @@ typedef struct {
/** Pluggable similarity metric; pass NULL to use internal metric */
git_diff_similarity_metric *metric;
+ /**
+ * Maximum number of times to merge common ancestors to build a
+ * virtual merge base when faced with criss-cross merges. When this
+ * limit is reached, the next ancestor will simply be used instead of
+ * attempting to merge it. The default is unlimited.
+ */
+ unsigned int recursion_limit;
+
/** Flags for handling conflicting content. */
git_merge_file_favor_t file_favor;