using System; namespace LibGit2Sharp { /// /// Options to define file comparison behavior. /// public sealed class CompareOptions { /// /// Initializes a new instance of the class. /// public CompareOptions() { ContextLines = 3; InterhunkLines = 0; Algorithm = DiffAlgorithm.Myers; } /// /// The number of unchanged lines that define the boundary of a hunk (and to display before and after). /// (Default = 3) /// public int ContextLines { get; set; } /// /// The maximum number of unchanged lines between hunk boundaries before the hunks will be merged into a one. /// (Default = 0) /// public int InterhunkLines { get; set; } /// /// Options for rename detection. If null, the `diff.renames` configuration setting is used. /// public SimilarityOptions Similarity { get; set; } /// /// Include "unmodified" entries in the results. /// public bool IncludeUnmodified { get; set; } /// /// Use the "patience diff" algorithm. /// [Obsolete("This property will be removed in the next release. Please use Algorithm instead.")] public bool UsePatienceAlgorithm { get; set; } /// /// Algorithm to be used when performing a Diff. /// By default, will be used. /// public DiffAlgorithm Algorithm { get; set; } } }