File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -110,10 +110,10 @@ public virtual bool IsCurrentRepositoryHead
110
110
{
111
111
if ( this is DetachedHead )
112
112
{
113
- return repo . Head . reference . TargetIdentifier == this . reference . TargetIdentifier ;
113
+ return repo . Head . Reference . TargetIdentifier == this . Reference . TargetIdentifier ;
114
114
}
115
115
116
- return repo . Head . reference . TargetIdentifier == this . CanonicalName ;
116
+ return repo . Head . Reference . TargetIdentifier == this . CanonicalName ;
117
117
}
118
118
}
119
119
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public abstract class ReferenceWrapper<TObject> : IEquatable<ReferenceWrapper<TO
16
16
/// The repository.
17
17
/// </summary>
18
18
protected readonly Repository repo ;
19
- protected readonly Reference reference ;
19
+ private readonly Reference reference ;
20
20
private readonly Lazy < TObject > objectBuilder ;
21
21
22
22
private static readonly LambdaEqualityHelper < ReferenceWrapper < TObject > > equalityHelper =
@@ -61,6 +61,17 @@ public virtual string FriendlyName
61
61
get { return Shorten ( ) ; }
62
62
}
63
63
64
+ /// <summary>
65
+ /// The underlying <see cref="Reference"/>
66
+ /// </summary>
67
+ public virtual Reference Reference
68
+ {
69
+ get
70
+ {
71
+ return reference ;
72
+ }
73
+ }
74
+
64
75
/// <summary>
65
76
/// Returns the <see cref="CanonicalName"/>, a <see cref="string"/> representation of the current reference.
66
77
/// </summary>
You can’t perform that action at this time.
0 commit comments