Skip to content

Commit b0a88b7

Browse files
committed
Get rid of some more opaque safe handles
1 parent 3bc68d5 commit b0a88b7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1277
-905
lines changed

‎LibGit2Sharp/Commit.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private IEnumerable<Note> RetrieveNotesOfCommit(ObjectId oid)
106106
returnrepo.Notes[oid];
107107
}
108108

109-
privatestaticstringRetrieveEncodingOf(GitObjectSafeHandleobj)
109+
privatestaticstringRetrieveEncodingOf(ObjectHandleobj)
110110
{
111111
stringencoding=Proxy.git_commit_message_encoding(obj);
112112

‎LibGit2Sharp/CommitLog.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public Commit FindMergeBase(IEnumerable<Commit> commits, MergeBaseFindingStrateg
132132
privateclassCommitEnumerator:IEnumerator<Commit>
133133
{
134134
privatereadonlyRepositoryrepo;
135-
privatereadonlyRevWalkerSafeHandlehandle;
135+
privatereadonlyRevWalkerHandlehandle;
136136
privateObjectIdcurrentOid;
137137

138138
publicCommitEnumerator(Repositoryrepo,CommitFilterfilter)
@@ -191,7 +191,7 @@ private void Dispose(bool disposing)
191191
handle.SafeDispose();
192192
}
193193

194-
privatedelegatevoidHidePushSignature(RevWalkerSafeHandlehandle,ObjectIdid);
194+
privatedelegatevoidHidePushSignature(RevWalkerHandlehandle,ObjectIdid);
195195

196196
privatevoidInternalHidePush(IList<object>identifier,HidePushSignaturehidePush)
197197
{

‎LibGit2Sharp/Core/GitObjectLazyGroup.cs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespaceLibGit2Sharp.Core
55
{
6-
internalclassGitObjectLazyGroup:LazyGroup<GitObjectSafeHandle>
6+
internalclassGitObjectLazyGroup:LazyGroup<ObjectHandle>
77
{
88
privatereadonlyObjectIdid;
99

@@ -13,15 +13,15 @@ public GitObjectLazyGroup(Repository repo, ObjectId id)
1313
this.id=id;
1414
}
1515

16-
protectedoverridevoidEvaluateInternal(Action<GitObjectSafeHandle>evaluator)
16+
protectedoverridevoidEvaluateInternal(Action<ObjectHandle>evaluator)
1717
{
1818
using(varosw=newObjectSafeWrapper(id,repo.Handle))
1919
{
2020
evaluator(osw.ObjectPtr);
2121
}
2222
}
2323

24-
publicstaticILazy<TResult>Singleton<TResult>(Repositoryrepo,ObjectIdid,Func<GitObjectSafeHandle,TResult>resultSelector)
24+
publicstaticILazy<TResult>Singleton<TResult>(Repositoryrepo,ObjectIdid,Func<ObjectHandle,TResult>resultSelector)
2525
{
2626
returnSingleton(()=>
2727
{

‎LibGit2Sharp/Core/Handles/DescribeResultSafeHandle.cs‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎LibGit2Sharp/Core/Handles/GitAnnotatedCommitHandle.cs‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎LibGit2Sharp/Core/Handles/GitObjectSafeHandle.cs‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎LibGit2Sharp/Core/Handles/NotOwnedSafeHandleBase.cs‎

Lines changed: 0 additions & 29 deletions
This file was deleted.

‎LibGit2Sharp/Core/Handles/NoteSafeHandle.cs‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎LibGit2Sharp/Core/Handles/NullGitObjectSafeHandle.cs‎

Lines changed: 0 additions & 18 deletions
This file was deleted.

‎LibGit2Sharp/Core/Handles/NullRepositorySafeHandle.cs‎

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
(0)