@@ -38,26 +38,6 @@ public UnknownGitException(string message) : base(message) { }
38
38
/// <seealso cref="IRepoInspector"/>
39
39
public sealed class GitRepoInspector : IRepoInspector , IDisposable
40
40
{
41
- #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
42
- // TODO: Remove all of these enumerated permutations of the old optional args in 2.0.0
43
- [ ExcludeFromCodeCoverage ]
44
- [ Obsolete ( "Use FromPath(path, remote, log, commandRunner)" , error : false ) ]
45
- public static Task < GitRepoInspector > FromPath ( string path , ILogger ? log , ICommandRunner ? commandRunner )
46
- => FromPath ( path , "origin" , log , commandRunner ?? new SystemCommandRunner ( ) ) ;
47
- [ ExcludeFromCodeCoverage ]
48
- [ Obsolete ( "Use FromPath(path, remote, log, commandRunner)" , error : false ) ]
49
- public static Task < GitRepoInspector > FromPath ( string path , ILogger ? log )
50
- => FromPath ( path , "origin" , log , new SystemCommandRunner ( ) ) ;
51
- [ ExcludeFromCodeCoverage ]
52
- [ Obsolete ( "Use FromPath(path, remote, log, commandRunner)" , error : false ) ]
53
- public static Task < GitRepoInspector > FromPath ( string path , ICommandRunner ? commandRunner )
54
- => FromPath ( path , "origin" , null , commandRunner ?? new SystemCommandRunner ( ) ) ;
55
- [ ExcludeFromCodeCoverage ]
56
- [ Obsolete ( "Use FromPath(path, remote, log, commandRunner)" , error : false ) ]
57
- public static Task < GitRepoInspector > FromPath ( string path )
58
- => FromPath ( path , "origin" , null , new SystemCommandRunner ( ) ) ;
59
- #pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
60
-
61
41
/// <summary>
62
42
/// Creates an inspector from the specified path.
63
43
/// </summary>
@@ -347,7 +327,7 @@ public async Task<IReadOnlyList<Commit>> GetParents(Commit commit)
347
327
return parents ;
348
328
}
349
329
350
- private static readonly Regex RefsTagRegex = new Regex (
330
+ private static readonly Regex RefsTagRegex = new (
351
331
@"^(?<pointer>[a-zA-Z0-9]+)\s*refs/tags/(?<tag>.+?)(\^\{\})?$" ,
352
332
RegexOptions . Compiled | RegexOptions . Multiline | RegexOptions . ExplicitCapture ) ;
353
333
private static IEnumerable < Tag > MatchTags ( string commandOutput )
0 commit comments