Esempio n. 1
0
 /// <summary>
 /// Transform a reference to its source reference using the <see cref="Remote"/>'s default fetchspec.
 /// </summary>
 /// <param name="reference">The reference to transform.</param>
 /// <returns>The transformed reference.</returns>
 internal unsafe string FetchSpecTransformToSource(string reference)
 {
     using (RemoteHandle remoteHandle = Proxy.git_remote_lookup(repository.Handle, Name, true))
     {
         git_refspec *fetchSpecPtr = Proxy.git_remote_get_refspec(remoteHandle, 0);
         return(Proxy.git_refspec_rtransform(new IntPtr(fetchSpecPtr), reference));
     }
 }
Esempio n. 2
0
 internal unsafe RefSpec(Remote remote, git_refspec *handle)
 {
     this.remote = remote;
     this.handle = new IntPtr(handle);
 }