8000 Ensure RetrieveStatus honors "assumed-unchanged" flag · SinghVarun/libgit2sharp@d4f0867 · GitHub
[go: up one dir, main page]

Skip to content

Commit d4f0867

Browse files
committed
Ensure RetrieveStatus honors "assumed-unchanged" flag
1 parent e8a81a9 commit d4f0867

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

LibGit2Sharp.Tests/StatusFixture.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,5 +581,16 @@ public void CanRetrieveTheStatusOfAGlobSpec()
581581
Assert.Equal(2, status.Untracked.Count());
582582
}
583583
}
584+
585+
[Fact]
586+
public void RetrievingTheStatusHonorsAssumedUnchangedMarkedIndexEntries()
587+
{
588+
var path = SandboxAssumeUnchangedTestRepo();
589+
using (var repo = new Repository(path))
590+
{
591+
var status = repo.RetrieveStatus();
592+
Assert.Equal("hello.txt", status.Modified.Single().FilePath);
593+
}
594+
}
584595
}
585596
}

LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ private static void SetUpTestEnvironment()
6868
RevertTestRepoWorkingDirPath = Path.Combine(sourceRelativePath, "revert_testrepo_wd");
6969
SubmoduleTestRepoWorkingDirPath = Path.Combine(sourceRelativePath, "submodule_wd");
7070
SubmoduleTargetTestRepoWorkingDirPath = Path.Combine(sourceRelativePath, "submodule_target_wd");
71+
AssumeUnchangedRepoWorkingDirPath = Path.Combine(sourceRelativePath, "assume_unchanged_wd");
7172
}
7273

7374
private static bool IsFileSystemCaseSensitiveInternal()

0 commit comments

Comments
 (0)
0