@@ -19,7 +19,7 @@ public abstract class Filter : IEquatable<Filter>
19
19
private readonly string name ;
20
20
private readonly string attributes ;
21
21
22
- private readonly GitFilter managedFilter ;
22
+ private readonly GitFilter gitFilter ;
23
23
24
24
/// <summary>
25
25
/// Initializes a new instance of the <see cref="Filter"/> class.
@@ -45,7 +45,7 @@ private Filter(string name, string attributes)
45
45
this . name = name ;
46
46
this . attributes = attributes ;
47
47
48
- managedFilter = new GitFilter
48
+ gitFilter = new GitFilter
49
49
{
50
50
attributes = EncodingMarshaler . FromManaged ( Encoding . UTF8 , attributes ) ,
51
51
init = InitializeCallback ,
@@ -73,9 +73,9 @@ public IEnumerable<string> Attributes
73
73
/// <summary>
74
74
/// The marshalled filter
75
75
/// </summary>
76
- internal GitFilter ManagedFilter
76
+ internal GitFilter GitFilter
77
77
{
78
- get { return managedFilter ; }
78
+ get { return gitFilter ; }
79
79
}
80
80
81
81
/// <summary>
@@ -193,7 +193,7 @@ public override int GetHashCode()
193
193
/// before the first use of the filter, so you can defer expensive
194
194
/// initialization operations (in case libgit2 is being used in a way that doesn't need the filter).
195
195
/// </summary>
196
- int InitializeCallback ( IntPtr gitFilter )
196
+ int InitializeCallback ( IntPtr filterPointer )
197
197
{
198
198
return Initialize ( ) ;
199
199
}
@@ -213,9 +213,9 @@ int InitializeCallback(IntPtr gitFilter)
213
213
/// callback to free the payload.
214
214
/// </summary>
215
215
/// <returns></returns>
216
- int CheckCallback ( GitFilter gitFilter , IntPtr payload , IntPtr filterSourcePtr , IntPtr attributeValues )
216
+ int CheckCallback ( GitFilter filter , IntPtr payload , IntPtr filterSourcePtr , IntPtr attributeValues )
217
217
{
218
- string filterForAttributes = EncodingMarshaler . FromNative ( Encoding . UTF8 , gitFilter . attributes ) ;
218
+ string filterForAttributes = EncodingMarshaler . FromNative ( Encoding . UTF8 , filter . attributes ) ;
219
219
var filterSource = FilterSource . FromNativePtr ( filterSourcePtr ) ;
220
220
return Check ( filterForAttributes . Split ( ',' ) , filterSource ) ;
221
221
}
@@ -231,7 +231,7 @@ int CheckCallback(GitFilter gitFilter, IntPtr payload, IntPtr filterSourcePtr, I
231
231
///
232
232
/// The `payload` value will refer to any payload that was set by the `check` callback. It may be read from or written to as needed.
233
233
/// </summary>
234
- int ApplyCallback ( GitFilter gitFilter , IntPtr payload ,
234
+ int ApplyCallback ( GitFilter filter , IntPtr payload ,
235
235
IntPtr gitBufferToPtr , IntPtr gitBufferFromPtr , IntPtr filterSourcePtr )
236
236
{
237
237
var filterSource = FilterSource . FromNativePtr ( filterSourcePtr ) ;
0 commit comments