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/NoteCollection.cs | |
parent | 9593179686b85c03743a6c434c21ce8b60e422ad (diff) |
Add helper methods to determine reference kind from canonical name
Diffstat (limited to 'LibGit2Sharp/NoteCollection.cs')
-rw-r--r-- | LibGit2Sharp/NoteCollection.cs | 4 |
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; } |