Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'LibGit2Sharp/CompareOptions.cs')
-rw-r--r--LibGit2Sharp/CompareOptions.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/LibGit2Sharp/CompareOptions.cs b/LibGit2Sharp/CompareOptions.cs
index fccd7558..6e9acb43 100644
--- a/LibGit2Sharp/CompareOptions.cs
+++ b/LibGit2Sharp/CompareOptions.cs
@@ -1,3 +1,5 @@
+using System;
+
namespace LibGit2Sharp
{
/// <summary>
@@ -12,6 +14,7 @@ namespace LibGit2Sharp
{
ContextLines = 3;
InterhunkLines = 0;
+ Algorithm = DiffAlgorithm.Meyers;
}
/// <summary>
@@ -39,6 +42,13 @@ namespace LibGit2Sharp
/// <summary>
/// Use the "patience diff" algorithm.
/// </summary>
+ [Obsolete("This property will be removed in the next release. Please use Algorithm instead.")]
public bool UsePatienceAlgorithm { get; set; }
+
+ /// <summary>
+ /// Algorithm to be used when performing a Diff.
+ /// By default, <see cref="DiffAlgorithm.Meyers"/> will be used.
+ /// </summary>
+ public DiffAlgorithm Algorithm { get; set; }
}
}