File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ internal TreeChanges(DiffSafeHandle diff)
38
38
/// <param name="changeKind">Change type to filter on.</param>
39
39
private IEnumerable < TreeEntryChanges > GetChangesOfKind ( ChangeKind changeKind )
40
40
{
41
- for ( int i = 0 ; i < count . Value ; i ++ )
41
+ for ( int i = 0 ; i < Count ; i ++ )
42
42
{
43
43
var delta = Proxy . git_diff_get_delta ( diff , i ) ;
44
44
@@ -60,7 +60,7 @@ private static TreeEntryChanges ToTreeEntryChange(GitDiffDelta delta)
60
60
/// <returns>An <see cref="IEnumerator{T}"/> object that can be used to iterate through the collection.</returns>
61
61
public virtual IEnumerator < TreeEntryChanges > GetEnumerator ( )
62
62
{
63
- for ( int i = 0 ; i < count . Value ; i ++ )
63
+ for ( int i = 0 ; i < Count ; i ++ )
64
64
{
65
65
yield return new TreeEntryChanges ( Proxy . git_diff_get_delta ( diff , i ) ) ;
66
66
}
@@ -141,6 +141,14 @@ public virtual IEnumerable<TreeEntryChanges> Conflicted
141
141
get { return GetChangesOfKind ( ChangeKind . Conflicted ) ; }
142
142
}
143
143
144
+ /// <summary>
145
+ /// Gets the number of <see cref="TreeEntryChanges"/> in this comparison.
146
+ /// </summary>
147
+ public virtual int Count
148
+ {
149
+ get { return count . Value ; }
150
+ }
151
+
144
152
private string DebuggerDisplay
145
153
{
146
154
get
You can’t perform that action at this time.
0 commit comments