@@ -5,7 +5,7 @@ namespace LibGit2Sharp
5
5
/// <summary>
6
6
/// Provides helpers to a <see cref="Reference"/>.
7
7
/// </summary>
8
- public static class ReferenceExtensions
8
+ internal static class ReferenceExtensions
9
9
{
10
10
internal static bool LooksLikeLocalBranch ( this string canonicalName )
11
11
{
@@ -31,45 +31,5 @@ private static bool IsPrefixedBy(this string input, string prefix)
31
31
{
32
32
return input . StartsWith ( prefix , StringComparison . Ordinal ) ;
33
33
}
34
-
35
- /// <summary>
36
- /// Determine if the current <see cref="Reference"/> is a local branch.
37
- /// </summary>
38
- /// <param name="reference">The <see cref="Reference"/> to test.</param>
39
- /// <returns>true if the current <see cref="Reference"/> is a local branch, false otherwise.</returns>
40
- public static bool IsLocalBranch ( this Reference reference )
41
- {
42
- return reference . CanonicalName . LooksLikeLocalBranch ( ) ;
43
- }
44
-
45
- /// <summary>
46
- /// Determine if the current <see cref="Reference"/> is a remote tracking branch.
47
- /// </summary>
48
- /// <param name="reference">The <see cref="Reference"/> to test.</param>
49
- /// <returns>true if the current <see cref="Reference"/> is a remote tracking branch, false otherwise.</returns>
50
- public static bool IsRemoteTrackingBranch ( this Reference reference )
51
- {
52
- return reference . CanonicalName . LooksLikeRemoteTrackingBranch ( ) ;
53
- }
54
-
55
- /// <summary>
56
- /// Determine if the current <see cref="Reference"/> is a tag.
57
- /// </summary>
58
- /// <param name="reference">The <see cref="Reference"/> to test.</param>
59
- /// <returns>true if the current <see cref="Reference"/> is a tag, false otherwise.</returns>
60
- public static bool IsTag ( this Reference reference )
61
- {
62
- return reference . CanonicalName . LooksLikeTag ( ) ;
63
- }
64
-
65
- /// <summary>
66
- /// Determine if the current <see cref="Reference"/> is a note.
67
- /// </summary>
68
- /// <param name="reference">The <see cref="Reference"/> to test.</param>
69
- /// <returns>true if the current <see cref="Reference"/> is a note, false otherwise.</returns>
70
- public static bool IsNote ( this Reference reference )
71
- {
72
- return reference . CanonicalName . LooksLikeNote ( ) ;
73
- }
74
34
}
75
35
}
0 commit comments