Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaaman <romain.magny@gmail.com>2013-04-26 18:07:09 +0400
committernulltoken <emeric.fermas@gmail.com>2013-04-26 22:28:31 +0400
commitaf00576f961243cd83ad7e8828ac411f67822a38 (patch)
treee9b9cad09a46699ee7940540a983924f24604b84 /LibGit2Sharp/TagCollection.cs
parent9593179686b85c03743a6c434c21ce8b60e422ad (diff)
Add helper methods to determine reference kind from canonical name
Diffstat (limited to 'LibGit2Sharp/TagCollection.cs')
-rw-r--r--LibGit2Sharp/TagCollection.cs4
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;
}