diff options
author | nulltoken <emeric.fermas@gmail.com> | 2015-01-23 17:46:32 +0300 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2015-01-23 17:53:25 +0300 |
commit | d4f0867cd8916c1fbf45bdd66a804c36d0942f70 (patch) | |
tree | 43429ca180722624daa76257409f19162ca3b66e /LibGit2Sharp.Tests | |
parent | e8a81a90ce22813565ceefac91bb7c12281191d1 (diff) |
Ensure RetrieveStatus honors "assumed-unchanged" flag
Diffstat (limited to 'LibGit2Sharp.Tests')
-rw-r--r-- | LibGit2Sharp.Tests/StatusFixture.cs | 11 | ||||
-rw-r--r-- | LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/LibGit2Sharp.Tests/StatusFixture.cs b/LibGit2Sharp.Tests/StatusFixture.cs index 3e262e34..e8f9d731 100644 --- a/LibGit2Sharp.Tests/StatusFixture.cs +++ b/LibGit2Sharp.Tests/StatusFixture.cs @@ -581,5 +581,16 @@ namespace LibGit2Sharp.Tests Assert.Equal(2, status.Untracked.Count()); } } + + [Fact] + public void RetrievingTheStatusHonorsAssumedUnchangedMarkedIndexEntries() + { + var path = SandboxAssumeUnchangedTestRepo(); + using (var repo = new Repository(path)) + { + var status = repo.RetrieveStatus(); + Assert.Equal("hello.txt", status.Modified.Single().FilePath); + } + } } } diff --git a/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs b/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs index 6adca051..ed60c217 100644 --- a/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs +++ b/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs @@ -68,6 +68,7 @@ namespace LibGit2Sharp.Tests.TestHelpers RevertTestRepoWorkingDirPath = Path.Combine(sourceRelativePath, "revert_testrepo_wd"); SubmoduleTestRepoWorkingDirPath = Path.Combine(sourceRelativePath, "submodule_wd"); SubmoduleTargetTestRepoWorkingDirPath = Path.Combine(sourceRelativePath, "submodule_target_wd"); + AssumeUnchangedRepoWorkingDirPath = Path.Combine(sourceRelativePath, "assume_unchanged_wd"); } private static bool IsFileSystemCaseSensitiveInternal() |