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:
authornulltoken <emeric.fermas@gmail.com>2014-04-27 14:14:34 +0400
committernulltoken <emeric.fermas@gmail.com>2014-04-27 14:14:34 +0400
commita1b78fa4d290ae5fd5b0716140d3bc0ba390fe62 (patch)
treee4805a9afc3c9227c12030cc8161dfad25c37250 /LibGit2Sharp
parent17fee2b51e2350821e21554a22275ef69c0e30be (diff)
Favor usage of non obsolete methods
Diffstat (limited to 'LibGit2Sharp')
-rw-r--r--LibGit2Sharp/ReferenceCollection.cs2
-rw-r--r--LibGit2Sharp/ReferenceCollectionExtensions.cs2
-rw-r--r--LibGit2Sharp/ReflogCollection.cs2
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));