File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments