File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -581,5 +581,16 @@ public void CanRetrieveTheStatusOfAGlobSpec()
581
581
Assert . Equal ( 2 , status . Untracked . Count ( ) ) ;
582
582
}
583
583
}
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
+ }
584
595
}
585
596
}
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ private static void SetUpTestEnvironment()
68
68
RevertTestRepoWorkingDirPath = Path . Combine ( sourceRelativePath , "revert_testrepo_wd" ) ;
69
69
SubmoduleTestRepoWorkingDirPath = Path . Combine ( sourceRelativePath , "submodule_wd" ) ;
70
70
SubmoduleTargetTestRepoWorkingDirPath = Path . Combine ( sourceRelativePath , "submodule_target_wd" ) ;
71
+ AssumeUnchangedRepoWorkingDirPath = Path . Combine ( sourceRelativePath , "assume_unchanged_wd" ) ;
71
72
}
72
73
73
74
private static bool IsFileSystemCaseSensitiveInternal ( )
You can’t perform that action at this time.
0 commit comments