diff options
author | nulltoken <emeric.fermas@gmail.com> | 2014-04-27 14:14:34 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2014-04-27 14:14:34 +0400 |
commit | a1b78fa4d290ae5fd5b0716140d3bc0ba390fe62 (patch) | |
tree | e4805a9afc3c9227c12030cc8161dfad25c37250 /LibGit2Sharp | |
parent | 17fee2b51e2350821e21554a22275ef69c0e30be (diff) |
Favor usage of non obsolete methods
Diffstat (limited to 'LibGit2Sharp')
-rw-r--r-- | LibGit2Sharp/ReferenceCollection.cs | 2 | ||||
-rw-r--r-- | LibGit2Sharp/ReferenceCollectionExtensions.cs | 2 | ||||
-rw-r--r-- | LibGit2Sharp/ReflogCollection.cs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/LibGit2Sharp/ReferenceCollection.cs b/LibGit2Sharp/ReferenceCollection.cs index 6c040467..95afe820 100644 --- a/LibGit2Sharp/ReferenceCollection.cs +++ b/LibGit2Sharp/ReferenceCollection.cs @@ -283,7 +283,7 @@ namespace LibGit2Sharp { var targetIdentifier = target as string; - if (IsValidName(targetIdentifier)) + if (Reference.IsValidName(targetIdentifier)) { Proxy.git_repository_set_head(repo.Handle, targetIdentifier, signature, logMessage); } diff --git a/LibGit2Sharp/ReferenceCollectionExtensions.cs b/LibGit2Sharp/ReferenceCollectionExtensions.cs index 6be57a77..4442b48d 100644 --- a/LibGit2Sharp/ReferenceCollectionExtensions.cs +++ b/LibGit2Sharp/ReferenceCollectionExtensions.cs @@ -21,7 +21,7 @@ namespace LibGit2Sharp private static RefState TryResolveReference(out Reference reference, ReferenceCollection refsColl, string canonicalName) { - if (!refsColl.IsValidName(canonicalName)) + if (!Reference.IsValidName(canonicalName)) { reference = null; return RefState.DoesNotLookValid; diff --git a/LibGit2Sharp/ReflogCollection.cs b/LibGit2Sharp/ReflogCollection.cs index 35d9fbd7..d95efbcb 100644 --- a/LibGit2Sharp/ReflogCollection.cs +++ b/LibGit2Sharp/ReflogCollection.cs @@ -36,7 +36,7 @@ namespace LibGit2Sharp Ensure.ArgumentNotNullOrEmptyString(canonicalName, "canonicalName"); Ensure.ArgumentNotNull(repo, "repo"); - if (!repo.Refs.IsValidName(canonicalName)) + if (!Reference.IsValidName(canonicalName)) { throw new InvalidSpecificationException( string.Format(CultureInfo.InvariantCulture, "The given reference name '{0}' is not valid", canonicalName)); |