summaryrefslogtreecommitdiff
path: root/src/merge_file.c
diff options
context:
space:
mode:
authorJacques Germishuys <jacquesg@striata.com>2015-03-12 13:16:09 +0200
committerJacques Germishuys <jacquesg@striata.com>2015-03-16 09:53:27 +0200
commit74c37c2a48756299306bb10e9e546c1627ca289f (patch)
tree33754c0585b084657059fd9cbac98e0920119cd5 /src/merge_file.c
parent13de93631664cd6eec3afedabb7145d5562a3e01 (diff)
downloadlibgit2-74c37c2a48756299306bb10e9e546c1627ca289f.tar.gz
Added options to enable patience and minimal diff drivers
Diffstat (limited to 'src/merge_file.c')
-rw-r--r--src/merge_file.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/merge_file.c b/src/merge_file.c
index 8bb003fe3..6d89b089d 100644
--- a/src/merge_file.c
+++ b/src/merge_file.c
@@ -158,6 +158,12 @@ static int git_merge_file__from_inputs(
if (options.flags & GIT_MERGE_FILE_IGNORE_WHITESPACE_EOL)
xmparam.xpp.flags |= XDF_IGNORE_WHITESPACE_AT_EOL;
+ if (options.flags & GIT_MERGE_FILE_DIFF_PATIENCE)
+ xmparam.xpp.flags |= XDF_PATIENCE_DIFF;
+
+ if (options.flags & GIT_MERGE_FILE_DIFF_MINIMAL)
+ xmparam.xpp.flags |= XDF_NEED_MINIMAL;
+
if ((xdl_result = xdl_merge(&ancestor_mmfile, &our_mmfile,
&their_mmfile, &xmparam, &mmbuffer)) < 0) {
giterr_set(GITERR_MERGE, "Failed to merge files.");