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:
-rw-r--r--LibGit2Sharp/Core/LambdaEqualityHelper.cs2
-rw-r--r--LibGit2Sharp/GitObject.cs2
-rw-r--r--LibGit2Sharp/IndexEntry.cs2
-rw-r--r--LibGit2Sharp/Note.cs2
-rw-r--r--LibGit2Sharp/ObjectId.cs2
-rw-r--r--LibGit2Sharp/Reference.cs2
-rw-r--r--LibGit2Sharp/ReferenceWrapper.cs2
-rw-r--r--LibGit2Sharp/Remote.cs2
-rw-r--r--LibGit2Sharp/StatusEntry.cs2
-rw-r--r--LibGit2Sharp/TreeEntry.cs2
-rw-r--r--LibGit2Sharp/TreeEntryDefinition.cs2
11 files changed, 11 insertions, 11 deletions
diff --git a/LibGit2Sharp/Core/LambdaEqualityHelper.cs b/LibGit2Sharp/Core/LambdaEqualityHelper.cs
index e90942ea..be5bb863 100644
--- a/LibGit2Sharp/Core/LambdaEqualityHelper.cs
+++ b/LibGit2Sharp/Core/LambdaEqualityHelper.cs
@@ -6,7 +6,7 @@ namespace LibGit2Sharp.Core
{
private readonly Func<T, object>[] equalityContributorAccessors;
- public LambdaEqualityHelper(Func<T, object>[] equalityContributorAccessors)
+ public LambdaEqualityHelper(params Func<T, object>[] equalityContributorAccessors)
{
this.equalityContributorAccessors = equalityContributorAccessors;
}
diff --git a/LibGit2Sharp/GitObject.cs b/LibGit2Sharp/GitObject.cs
index 616282b7..b9104fb2 100644
--- a/LibGit2Sharp/GitObject.cs
+++ b/LibGit2Sharp/GitObject.cs
@@ -21,7 +21,7 @@ namespace LibGit2Sharp
};
private static readonly LambdaEqualityHelper<GitObject> equalityHelper =
- new LambdaEqualityHelper<GitObject>(new Func<GitObject, object>[] { x => x.Id });
+ new LambdaEqualityHelper<GitObject>(x => x.Id);
/// <summary>
/// Needed for mocking purposes.
diff --git a/LibGit2Sharp/IndexEntry.cs b/LibGit2Sharp/IndexEntry.cs
index f9dfc2ca..2d80e5f2 100644
--- a/LibGit2Sharp/IndexEntry.cs
+++ b/LibGit2Sharp/IndexEntry.cs
@@ -10,7 +10,7 @@ namespace LibGit2Sharp
public class IndexEntry : IEquatable<IndexEntry>
{
private static readonly LambdaEqualityHelper<IndexEntry> equalityHelper =
- new LambdaEqualityHelper<IndexEntry>(new Func<IndexEntry, object>[] { x => x.Path, x => x.Id, x => x.State });
+ new LambdaEqualityHelper<IndexEntry>(x => x.Path, x => x.Id, x => x.State);
private Func<FileStatus> state;
diff --git a/LibGit2Sharp/Note.cs b/LibGit2Sharp/Note.cs
index 580aa2ea..78621e39 100644
--- a/LibGit2Sharp/Note.cs
+++ b/LibGit2Sharp/Note.cs
@@ -53,7 +53,7 @@ namespace LibGit2Sharp
}
private static readonly LambdaEqualityHelper<Note> equalityHelper =
- new LambdaEqualityHelper<Note>(new Func<Note, object>[] { x => x.BlobId, x => x.TargetObjectId, x => x.Namespace });
+ new LambdaEqualityHelper<Note>(x => x.BlobId, x => x.TargetObjectId, x => x.Namespace);
/// <summary>
/// Determines whether the specified <see cref = "Object" /> is equal to the current <see cref = "Note" />.
diff --git a/LibGit2Sharp/ObjectId.cs b/LibGit2Sharp/ObjectId.cs
index 27f5fd87..792ef4a5 100644
--- a/LibGit2Sharp/ObjectId.cs
+++ b/LibGit2Sharp/ObjectId.cs
@@ -24,7 +24,7 @@ namespace LibGit2Sharp
private static readonly Func<int, byte> byteConverter = i => reverseHexDigits[i - '0'];
private static readonly LambdaEqualityHelper<ObjectId> equalityHelper =
- new LambdaEqualityHelper<ObjectId>(new Func<ObjectId, object>[] { x => x.Sha });
+ new LambdaEqualityHelper<ObjectId>(x => x.Sha);
/// <summary>
/// Zero ObjectId
diff --git a/LibGit2Sharp/Reference.cs b/LibGit2Sharp/Reference.cs
index 68997841..415a9b33 100644
--- a/LibGit2Sharp/Reference.cs
+++ b/LibGit2Sharp/Reference.cs
@@ -12,7 +12,7 @@ namespace LibGit2Sharp
public abstract class Reference : IEquatable<Reference>
{
private static readonly LambdaEqualityHelper<Reference> equalityHelper =
- new LambdaEqualityHelper<Reference>(new Func<Reference, object>[] { x => x.CanonicalName, x => x.TargetIdentifier });
+ new LambdaEqualityHelper<Reference>(x => x.CanonicalName, x => x.TargetIdentifier);
/// <summary>
/// Gets the full name of this reference.
diff --git a/LibGit2Sharp/ReferenceWrapper.cs b/LibGit2Sharp/ReferenceWrapper.cs
index 49696747..33f63561 100644
--- a/LibGit2Sharp/ReferenceWrapper.cs
+++ b/LibGit2Sharp/ReferenceWrapper.cs
@@ -17,7 +17,7 @@ namespace LibGit2Sharp
private readonly Lazy<TObject> objectBuilder;
private static readonly LambdaEqualityHelper<ReferenceWrapper<TObject>> equalityHelper =
- new LambdaEqualityHelper<ReferenceWrapper<TObject>>(new Func<ReferenceWrapper<TObject>, object>[] { x => x.CanonicalName, x => x.TargetObject });
+ new LambdaEqualityHelper<ReferenceWrapper<TObject>>(x => x.CanonicalName, x => x.TargetObject);
private readonly string canonicalName;
diff --git a/LibGit2Sharp/Remote.cs b/LibGit2Sharp/Remote.cs
index 013beb30..e5a43c2d 100644
--- a/LibGit2Sharp/Remote.cs
+++ b/LibGit2Sharp/Remote.cs
@@ -11,7 +11,7 @@ namespace LibGit2Sharp
public class Remote : IEquatable<Remote>
{
private static readonly LambdaEqualityHelper<Remote> equalityHelper =
- new LambdaEqualityHelper<Remote>(new Func<Remote, object>[] { x => x.Name, x => x.Url });
+ new LambdaEqualityHelper<Remote>(x => x.Name, x => x.Url);
private readonly Repository repository;
diff --git a/LibGit2Sharp/StatusEntry.cs b/LibGit2Sharp/StatusEntry.cs
index 43babbfc..4eb8850f 100644
--- a/LibGit2Sharp/StatusEntry.cs
+++ b/LibGit2Sharp/StatusEntry.cs
@@ -12,7 +12,7 @@ namespace LibGit2Sharp
private readonly FileStatus state;
private static readonly LambdaEqualityHelper<StatusEntry> equalityHelper =
- new LambdaEqualityHelper<StatusEntry>(new Func<StatusEntry, object>[] { x => x.FilePath, x => x.State });
+ new LambdaEqualityHelper<StatusEntry>(x => x.FilePath, x => x.State);
/// <summary>
/// Needed for mocking purposes.
diff --git a/LibGit2Sharp/TreeEntry.cs b/LibGit2Sharp/TreeEntry.cs
index b6acbc13..8ecc940f 100644
--- a/LibGit2Sharp/TreeEntry.cs
+++ b/LibGit2Sharp/TreeEntry.cs
@@ -19,7 +19,7 @@ namespace LibGit2Sharp
private readonly Lazy<string> path;
private static readonly LambdaEqualityHelper<TreeEntry> equalityHelper =
- new LambdaEqualityHelper<TreeEntry>(new Func<TreeEntry, object>[] { x => x.Name, x => x.parentTreeId });
+ new LambdaEqualityHelper<TreeEntry>(x => x.Name, x => x.parentTreeId);
/// <summary>
/// Needed for mocking purposes.
diff --git a/LibGit2Sharp/TreeEntryDefinition.cs b/LibGit2Sharp/TreeEntryDefinition.cs
index 0cbe2362..c7656de5 100644
--- a/LibGit2Sharp/TreeEntryDefinition.cs
+++ b/LibGit2Sharp/TreeEntryDefinition.cs
@@ -12,7 +12,7 @@ namespace LibGit2Sharp
private Lazy<GitObject> target;
private static readonly LambdaEqualityHelper<TreeEntryDefinition> equalityHelper =
- new LambdaEqualityHelper<TreeEntryDefinition>(new Func<TreeEntryDefinition, object>[] { x => x.Mode, x => x.Type, x => x.TargetId });
+ new LambdaEqualityHelper<TreeEntryDefinition>(x => x.Mode, x => x.Type, x => x.TargetId);
/// <summary>
/// Needed for mocking purposes.