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/BranchCollection.cs | |
parent | 9593179686b85c03743a6c434c21ce8b60e422ad (diff) |
Add helper methods to determine reference kind from canonical name
Diffstat (limited to 'LibGit2Sharp/BranchCollection.cs')
-rw-r--r-- | LibGit2Sharp/BranchCollection.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LibGit2Sharp/BranchCollection.cs b/LibGit2Sharp/BranchCollection.cs index f062488a..cc742a9d 100644 --- a/LibGit2Sharp/BranchCollection.cs +++ b/LibGit2Sharp/BranchCollection.cs @@ -188,8 +188,8 @@ namespace LibGit2Sharp private static bool LooksLikeABranchName(string referenceName) { return referenceName == "HEAD" || - referenceName.StartsWith(Reference.LocalBranchPrefix, StringComparison.Ordinal) || - referenceName.StartsWith(Reference.RemoteTrackingBranchPrefix, StringComparison.Ordinal); + referenceName.LooksLikeLocalBranch() || + referenceName.LooksLikeRemoteTrackingBranch(); } private static string branchToCanoncialName(IntPtr namePtr, GitBranchType branchType) |