diff options
author | Saaman <romain.magny@gmail.com> | 2013-04-26 18:07:09 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-04-26 22:28:31 +0400 |
commit | af00576f961243cd83ad7e8828ac411f67822a38 (patch) | |
tree | e9b9cad09a46699ee7940540a983924f24604b84 /LibGit2Sharp/TagCollection.cs | |
parent | 9593179686b85c03743a6c434c21ce8b60e422ad (diff) |
Add helper methods to determine reference kind from canonical name
Diffstat (limited to 'LibGit2Sharp/TagCollection.cs')
-rw-r--r-- | LibGit2Sharp/TagCollection.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LibGit2Sharp/TagCollection.cs b/LibGit2Sharp/TagCollection.cs index f05031c5..0b538747 100644 --- a/LibGit2Sharp/TagCollection.cs +++ b/LibGit2Sharp/TagCollection.cs @@ -125,7 +125,7 @@ namespace LibGit2Sharp { Ensure.ArgumentNotNullOrEmptyString(name, "name"); - if (name.StartsWith(Reference.TagPrefix, StringComparison.Ordinal)) + if (name.LooksLikeTag()) { return name; } @@ -137,7 +137,7 @@ namespace LibGit2Sharp { Ensure.ArgumentNotNullOrEmptyString(name, "name"); - if (!name.StartsWith(Reference.TagPrefix, StringComparison.Ordinal)) + if (!name.LooksLikeTag()) { return name; } |