File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,8 @@ public void RetrievingTheStatusOfTheRepositoryHonorsTheGitIgnoreDirectives()
146
146
147
147
RepositoryStatus newStatus = repo . Index . RetrieveStatus ( ) ;
148
148
newStatus . Untracked . Single ( ) . ShouldEqual ( ".gitignore" ) ;
149
+
150
+ repo . Index . RetrieveStatus ( relativePath ) . ShouldEqual ( FileStatus . Ignored ) ;
149
151
}
150
152
}
151
153
}
Original file line number Diff line number Diff line change @@ -45,7 +45,9 @@ public enum FileStatus
45
45
/// </summary>
46
46
Missing = ( 1 << 5 ) , /* GIT_STATUS_WT_DELETED */
47
47
48
- //TODO: Ignored files not handled yet
49
- GIT_STATUS_IGNORED = ( 1 << 6 ) , /* GIT_STATUS_IGNORED */
48
+ /// <summary>
49
+ /// The file is <see cref="Untracked"/> but its name and/or path macthes an exclude pattern in a <c>gitignore</c> file.
50
+ /// </summary>
51
+ Ignored = ( 1 << 6 ) , /* GIT_STATUS_IGNORED */
50
52
}
51
53
}
You can’t perform that action at this time.
0 commit comments