8000 Revert "Temporary revert of the null Trees diffing feature" · ben/libgit2sharp@597a237 · GitHub
[go: up one dir, main page]

Skip to content

Commit 597a237

Browse files
committed
Revert "Temporary revert of the null Trees diffing feature"
This reverts commit adbf3fc.
1 parent ac4801c commit 597a237

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

LibGit2Sharp.Tests/DiffTreeToTreeFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public void CanCompareTwoVersionsOfAFileWithADiffOfTwoHunks()
355355
}
356356
}
357357

358-
[Fact(Skip = "Not working against libgit2 debug version.")]
358+
[Fact]
359359
public void CanCompareATreeAgainstANullTree()
360360
{
361361
using (var repo = new Repository(StandardTestRepoPath))
@@ -378,7 +378,7 @@ public void CanCompareATreeAgainstANullTree()
378378
}
379379
}
380380

381-
[Fact(Skip = "Not working against libgit2 debug version.")]
381+
[Fact]
382382
public void ComparingTwoNullTreesReturnsAnEmptyTreeChanges()
383383
{
384384
using (var repo = new Repository(StandardTestRepoPath))

LibGit2Sharp/Diff.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ internal Diff(Repository repo)
7070
/// <returns>A <see cref = "TreeChanges"/> containing the changes between the <paramref name = "oldTree"/> and the <paramref name = "newTree"/>.</returns>
7171
public virtual TreeChanges Compare(Tree oldTree, Tree newTree, IEnumerable<string> paths = null)
7272
{
73-
//TODO: The checks below will be removed when running against next libgit2 binaries
74-
Ensure.ArgumentNotNull(oldTree, "oldTree");
75-
Ensure.ArgumentNotNull(newTree, "newTree");
76-
7773
using(GitDiffOptions options = BuildOptions(paths))
7874
using (DiffListSafeHandle diff = BuildDiffListFromTrees(
7975
oldTree != null ? oldTree.Id : null,

0 commit comments

Comments
 (0)
0