@@ -28,22 +28,22 @@ public class RemoveFixture : BaseFixture
28
28
* 'git rm <file>' fails ("error: '<file>' has local modifications").
29
29
*/
30
30
[ 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 ) ]
32
32
/***
33
33
* Test case: modified file in wd, the modifications have already been promoted to the index.
34
34
* 'git rm --cached <file>' works (removes the file from the index)
35
35
* 'git rm <file>' fails ("error: '<file>' has changes staged in the index")
36
36
*/
37
37
[ 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 ) ]
39
39
/***
40
40
* Test case: modified file in wd, the modifications have already been promoted to the index, and
41
41
* the file does not exist in the HEAD.
42
42
* 'git rm --cached <file>' works (removes the file from the index)
43
43
* 'git rm <file>' throws ("error: '<file>' has changes staged in the index")
44
44
*/
45
45
[ 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 ) ]
47
47
public void CanRemoveAnUnalteredFileFromTheIndexWithoutRemovingItFromTheWorkingDirectory (
48
48
bool removeFromWorkdir , string filename , bool throws , FileStatus initialStatus , bool existsBeforeRemove , bool existsAfterRemove , FileStatus lastStatus )
49
49
{
0 commit comments