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/NoteCollection.cs
parent9593179686b85c03743a6c434c21ce8b60e422ad (diff)
Add helper methods to determine reference kind from canonical name
Diffstat (limited to 'LibGit2Sharp/NoteCollection.cs')
-rw-r--r--LibGit2Sharp/NoteCollection.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/LibGit2Sharp/NoteCollection.cs b/LibGit2Sharp/NoteCollection.cs
index 5af09df5..7a57d3d2 100644
--- a/LibGit2Sharp/NoteCollection.cs
+++ b/LibGit2Sharp/NoteCollection.cs
@@ -136,7 +136,7 @@ namespace LibGit2Sharp
{
Ensure.ArgumentNotNullOrEmptyString(name, "name");
- if (name.StartsWith(Reference.NotePrefix, StringComparison.Ordinal))
+ if (name.LooksLikeNote())
{
return name;
}
@@ -148,7 +148,7 @@ namespace LibGit2Sharp
{
Ensure.ArgumentNotNullOrEmptyString(name, "name");
- if (!name.StartsWith(Reference.NotePrefix, StringComparison.Ordinal))
+ if (!name.LooksLikeNote())
{
return name;
}