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)
128128 coreOptions . PathSpec = GitStrArrayManaged . BuildFrom ( options . PathSpec ) ;
129129 }
130130
131+ if ( options . DisablePathSpecMatch )
132+ {
133+ coreOptions . Flags |=
134+ GitStatusOptionFlags . DisablePathspecMatch ;
135+ }
136+
131137 return coreOptions ;
132138 }
133139
Original file line number Diff line number Diff line change @@ -70,6 +70,16 @@ public StatusOptions()
7070 /// <summary>
7171 /// Limit the scope of paths to consider to the provided pathspecs
7272 /// </summary>
73+ /// <remarks>
74+ /// If a PathSpec is given, the results from rename detection may
75+ /// not be accurate.
76+ /// </remarks>
7377 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 ; }
7484 }
7585}
You can’t perform that action at this time.
0 commit comments