File tree 2 files changed +22
-3
lines changed
2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -78,16 +78,18 @@ private static GitStatusOptions CreateStatusOptions(StatusOptions options)
78
78
{
79
79
Version = 1 ,
80
80
Show = ( GitStatusShow ) options . Show ,
81
- Flags =
82
- GitStatusOptionFlags . IncludeUntracked |
83
- GitStatusOptionFlags . RecurseUntrackedDirs ,
84
81
} ;
85
82
86
83
if ( options . IncludeIgnored )
87
84
{
88
85
coreOptions . Flags |= GitStatusOptionFlags . IncludeIgnored ;
89
86
}
90
87
88
+ if ( options . IncludeUntracked )
89
+ {
90
+ coreOptions . Flags |= GitStatusOptionFlags . IncludeUntracked ;
91
+ }
92
+
91
93
if ( options . DetectRenamesInIndex )
92
94
{
93
95
coreOptions . Flags |=
@@ -114,6 +116,12 @@ private static GitStatusOptions CreateStatusOptions(StatusOptions options)
114
116
GitStatusOptionFlags . RecurseIgnoredDirs ;
115
117
}
116
118
119
+ if ( options . RecurseUntrackedDirs )
120
+ {
121
+ coreOptions . Flags |=
122
+ GitStatusOptionFlags . RecurseUntrackedDirs ;
123
+ }
124
+
117
125
if ( options . PathSpec != null )
118
126
{
119
127
coreOptions . PathSpec = GitStrArrayManaged . BuildFrom ( options . PathSpec ) ;
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ public StatusOptions()
36
36
{
37
37
DetectRenamesInIndex = true ;
38
38
IncludeIgnored = true ;
39
+ IncludeUntracked = true ;
40
+ RecurseUntrackedDirs = true ;
39
41
}
40
42
41
43
/// <summary>
@@ -63,6 +65,11 @@ public StatusOptions()
63
65
/// </summary>
64
66
public bool RecurseIgnoredDirs { get ; set ; }
65
67
68
+ /// <summary>
69
+ /// Recurse into untracked directories
70
+ /// </summary>
71
+ public bool RecurseUntrackedDirs { get ; set ; }
72
+
66
73
/// <summary>
67
74
/// Limit the scope of paths to consider to the provided pathspecs
68
75
/// </summary>
@@ -94,5 +101,9 @@ public StatusOptions()
94
101
/// </remarks>
95
102
public bool IncludeIgnored { get ; set ; }
96
103
104
+ /// <summary>
105
+ /// Include untracked files when scanning for status
106
+ /// </summary>
107
+ public bool IncludeUntracked { get ; set ; }
97
108
}
98
109
}
You can’t perform that action at this time.
0 commit comments