Skip to content

Commit c742c00

Browse files
committed
Rename GitFetchSpecHandle to GitRefSpecHandle
1 parent 8738461 commit c742c00

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

LibGit2Sharp/BranchUpdater.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ private void GetUpstreamInformation(string canonicalName, out string remoteName,
190190
Remote remote = repo.Network.Remotes.RemoteForName(remoteName);
191191
using (RemoteSafeHandle remoteHandle = Proxy.git_remote_load(repo.Handle, remote.Name, true))
192192
{
193-
GitFetchSpecHandle fetchSpecPtr = Proxy.git_remote_fetchspec(remoteHandle);
194-
mergeBranchName = Proxy.git_fetchspec_rtransform(fetchSpecPtr, canonicalName);
193+
GitRefSpecHandle refSpecPtr = Proxy.git_remote_fetchspec(remoteHandle);
194+
mergeBranchName = Proxy.git_refspec_rtransform(refSpecPtr, canonicalName);
195195
}
196196
}
197197
else

LibGit2Sharp/Core/Handles/GitFetchSpecHandle.cs

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace LibGit2Sharp.Core.Handles
2+
{
3+
internal class GitRefSpecHandle : NotOwnedSafeHandleBase
4+
{
5+
}
6+
}

LibGit2Sharp/Core/NativeMethods.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Globalization;
33
using System.IO;
44
using System.Reflection;
@@ -703,7 +703,7 @@ internal static extern int git_reference_symbolic_set_target(
703703
internal static extern int git_refspec_rtransform(
704704
byte[] target,
705705
UIntPtr outlen,
706-
GitFetchSpecHandle refSpec,
706+
GitRefSpecHandle refSpec,
707707
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8Marshaler))] string name);
708708

709709
[DllImport(libgit2)]
@@ -744,7 +744,7 @@ internal static extern int git_remote_load(
744744
internal static extern int git_remote_ls(RemoteSafeHandle remote, git_headlist_cb headlist_cb, IntPtr payload);
745745

746746
[DllImport(libgit2)]
747-
internal static extern GitFetchSpecHandle git_remote_fetchspec(RemoteSafeHandle remote);
747+
internal static extern GitRefSpecHandle git_remote_fetchspec(RemoteSafeHandle remote);
748748

749749
[DllImport(libgit2)]
750750
[return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8NoCleanupMarshaler))]

LibGit2Sharp/Core/Proxy.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Globalization;
44
using System.IO;
@@ -1269,7 +1269,7 @@ public static GitReferenceType git_reference_type(ReferenceSafeHandle reference)
12691269

12701270
#region git_refspec
12711271

1272-
public static string git_fetchspec_rtransform(GitFetchSpecHandle refSpecPtr, string name)
1272+
public static string git_refspec_rtransform(GitRefSpecHandle refSpecPtr, string name)
12731273
{
12741274
using (ThreadAffinity())
12751275
{
@@ -1318,7 +1318,7 @@ public static void git_remote_disconnect(RemoteSafeHandle remote)
13181318
}
13191319
}
13201320

1321-
public static GitFetchSpecHandle git_remote_fetchspec(RemoteSafeHandle remote)
1321+
public static GitRefSpecHandle git_remote_fetchspec(RemoteSafeHandle remote)
13221322
{
13231323
return NativeMethods.git_remote_fetchspec(remote);
13241324
}

LibGit2Sharp/LibGit2Sharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<Compile Include="CheckoutOptions.cs" />
7070
<Compile Include="Conflict.cs" />
7171
<Compile Include="ConflictCollection.cs" />
72-
<Compile Include="Core\Handles\GitFetchSpecHandle.cs" />
72+
<Compile Include="Core\Handles\GitRefSpecHandle.cs" />
7373
<Compile Include="Core\PathCase.cs" />
7474
<Compile Include="Network.cs" />
7575
<Compile Include="Core\GitRemoteHead.cs" />

0 commit comments

Comments
 (0)