Skip to content

Commit 1dd11be

Browse files
author
Tom Smith
committed
Set the minimal algorithm flag when compare options use minimal
1 parent 431b539 commit 1dd11be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

LibGit2Sharp/Diff.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ private static GitDiffOptions BuildOptions(DiffModifiers diffOptions, FilePath[]
5353
{
5454
options.Flags |= GitDiffOptionFlags.GIT_DIFF_PATIENCE;
5555
}
56+
else if (compareOptions.Algorithm == DiffAlgorithm.Minimal)
57+
{
58+
options.Flags |= GitDiffOptionFlags.GIT_DIFF_MINIMAL;
59+
}
5660

5761
if (diffOptions.HasFlag(DiffModifiers.DisablePathspecMatch))
5862
{

0 commit comments

Comments
 (0)