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:
authorKeith Dahlby <dahlbyk@gmail.com>2014-09-01 07:38:46 +0400
committerKeith Dahlby <dahlbyk@gmail.com>2014-09-05 20:16:07 +0400
commitc9157e4f8f57a7f745078f4c51a9153d6364d844 (patch)
tree03863e237e7ff89b07ef130aea95ad8e259d1c0f /LibGit2Sharp/Reference.cs
parent547daba273b2b23febb9860406453c8bc3ab4290 (diff)
Add IBelongToARepository with some implementations
Diffstat (limited to 'LibGit2Sharp/Reference.cs')
-rw-r--r--LibGit2Sharp/Reference.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/LibGit2Sharp/Reference.cs b/LibGit2Sharp/Reference.cs
index 94ac2f31..8ab7d1b7 100644
--- a/LibGit2Sharp/Reference.cs
+++ b/LibGit2Sharp/Reference.cs
@@ -10,7 +10,7 @@ namespace LibGit2Sharp
/// A Reference to another git object
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
- public abstract class Reference : IEquatable<Reference>
+ public abstract class Reference : IEquatable<Reference>, IBelongToARepository
{
private static readonly LambdaEqualityHelper<Reference> equalityHelper =
new LambdaEqualityHelper<Reference>(x => x.CanonicalName, x => x.TargetIdentifier);
@@ -209,5 +209,7 @@ namespace LibGit2Sharp
"{0} => \"{1}\"", CanonicalName, TargetIdentifier);
}
}
+
+ IRepository IBelongToARepository.Repository { get { return repo; } }
}
}