File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,12 @@ private static GitStatusOptions CreateStatusOptions(StatusOptions options)
128
128
coreOptions . PathSpec = GitStrArrayManaged . BuildFrom ( options . PathSpec ) ;
129
129
}
130
130
131
+ if ( options . DisablePathSpecMatch )
132
+ {
133
+ coreOptions . Flags |=
134
+ GitStatusOptionFlags . DisablePathspecMatch ;
135
+ }
136
+
131
137
return coreOptions ;
132
138
}
133
139
Original file line number Diff line number Diff line change @@ -70,6 +70,16 @@ public StatusOptions()
70
70
/// <summary>
71
71
/// Limit the scope of paths to consider to the provided pathspecs
72
72
/// </summary>
73
+ /// <remarks>
74
+ /// If a PathSpec is given, the results from rename detection may
75
+ /// not be accurate.
76
+ /// </remarks>
73
77
public string [ ] PathSpec { get ; set ; }
78
+
79
+ /// <summary>
80
+ /// When set to <c>true</c>, the PathSpec paths will be considered
81
+ /// as explicit paths, and NOT as pathspecs containing globs.
82
+ /// </summary>
83
+ public bool DisablePathSpecMatch { get ; set ; }
74
84
}
75
85
}
You can’t perform that action at this time.
0 commit comments