Skip to content

Commit d859f7e

Browse files
committed
renames
1 parent d899cd6 commit d859f7e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

LibGit2Sharp/Filter.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public abstract class Filter : IEquatable<Filter>
1919
private readonly string name;
2020
private readonly string attributes;
2121

22-
private readonly GitFilter managedFilter;
22+
private readonly GitFilter gitFilter;
2323

2424
/// <summary>
2525
/// Initializes a new instance of the <see cref="Filter"/> class.
@@ -45,7 +45,7 @@ private Filter(string name, string attributes)
4545
this.name = name;
4646
this.attributes = attributes;
4747

48-
managedFilter = new GitFilter
48+
gitFilter = new GitFilter
4949
{
5050
attributes = EncodingMarshaler.FromManaged(Encoding.UTF8, attributes),
5151
init = InitializeCallback,
@@ -73,9 +73,9 @@ public IEnumerable<string> Attributes
7373
/// <summary>
7474
/// The marshalled filter
7575
/// </summary>
76-
internal GitFilter ManagedFilter
76+
internal GitFilter GitFilter
7777
{
78-
get { return managedFilter; }
78+
get { return gitFilter; }
7979
}
8080

8181
/// <summary>
@@ -193,7 +193,7 @@ public override int GetHashCode()
193193
/// before the first use of the filter, so you can defer expensive
194194
/// initialization operations (in case libgit2 is being used in a way that doesn't need the filter).
195195
/// </summary>
196-
int InitializeCallback(IntPtr gitFilter)
196+
int InitializeCallback(IntPtr filterPointer)
197197
{
198198
return Initialize();
199199
}
@@ -213,9 +213,9 @@ int InitializeCallback(IntPtr gitFilter)
213213
/// callback to free the payload.
214214
/// </summary>
215215
/// <returns></returns>
216-
int CheckCallback(GitFilter gitFilter, IntPtr payload, IntPtr filterSourcePtr, IntPtr attributeValues)
216+
int CheckCallback(GitFilter filter, IntPtr payload, IntPtr filterSourcePtr, IntPtr attributeValues)
217217
{
218-
string filterForAttributes = EncodingMarshaler.FromNative(Encoding.UTF8, gitFilter.attributes);
218+
string filterForAttributes = EncodingMarshaler.FromNative(Encoding.UTF8, filter.attributes);
219219
var filterSource = FilterSource.FromNativePtr(filterSourcePtr);
220220
return Check(filterForAttributes.Split(','), filterSource);
221221
}
@@ -231,7 +231,7 @@ int CheckCallback(GitFilter gitFilter, IntPtr payload, IntPtr filterSourcePtr, I
231231
///
232232
/// 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.
233233
/// </summary>
234-
int ApplyCallback(GitFilter gitFilter, IntPtr payload,
234+
int ApplyCallback(GitFilter filter, IntPtr payload,
235235
IntPtr gitBufferToPtr, IntPtr gitBufferFromPtr, IntPtr filterSourcePtr)
236236
{
237237
var filterSource = FilterSource.FromNativePtr(filterSourcePtr);

0 commit comments

Comments
 (0)