@@ -28,22 +28,22 @@ public class RemoveFixture : BaseFixture
2828 * 'git rm <file>' fails ("error: '<file>' has local modifications").
2929 */
3030 [ InlineData ( false , "modified_unstaged_file.txt" , false , FileStatus . ModifiedInWorkdir , true , true , FileStatus . NewInWorkdir | FileStatus . DeletedFromIndex ) ]
31- [ InlineData ( true , "modified_unstaged_file.txt" , true , FileStatus . ModifiedInWorkdir , true , true , 0 ) ]
31+ [ InlineData ( true , "modified_unstaged_file.txt" , true , FileStatus . ModifiedInWorkdir , true , true , FileStatus . Unaltered ) ]
3232 /***
3333 * Test case: modified file in wd, the modifications have already been promoted to the index.
3434 * 'git rm --cached <file>' works (removes the file from the index)
3535 * 'git rm <file>' fails ("error: '<file>' has changes staged in the index")
3636 */
3737 [ InlineData ( false , "modified_staged_file.txt" , false , FileStatus . ModifiedInIndex , true , true , FileStatus . NewInWorkdir | FileStatus . DeletedFromIndex ) ]
38- [ InlineData ( true , "modified_staged_file.txt" , true , FileStatus . ModifiedInIndex , true , true , 0 ) ]
38+ [ InlineData ( true , "modified_staged_file.txt" , true , FileStatus . ModifiedInIndex , true , true , FileStatus . Unaltered ) ]
3939 /***
4040 * Test case: modified file in wd, the modifications have already been promoted to the index, and
4141 * the file does not exist in the HEAD.
4242 * 'git rm --cached <file>' works (removes the file from the index)
4343 * 'git rm <file>' throws ("error: '<file>' has changes staged in the index")
4444 */
4545 [ InlineData ( false , "new_tracked_file.txt" , false , FileStatus . NewInIndex , true , true , FileStatus . NewInWorkdir ) ]
46- [ InlineData ( true , "new_tracked_file.txt" , true , FileStatus . NewInIndex , true , true , 0 ) ]
46+ [ InlineData ( true , "new_tracked_file.txt" , true , FileStatus . NewInIndex , true , true , FileStatus . Unaltered ) ]
4747 public void CanRemoveAnUnalteredFileFromTheIndexWithoutRemovingItFromTheWorkingDirectory (
4848 bool removeFromWorkdir , string filename , bool throws , FileStatus initialStatus , bool existsBeforeRemove , bool existsAfterRemove , FileStatus lastStatus )
4949 {
0 commit comments