Example #1
0
 internal Remote(RemoteHandle handle, Repository repository)
 {
     this.repository = repository;
     this.handle     = handle;
     refSpecs        = new RefSpecCollection(this, handle);
     repository.RegisterForCleanup(this);
 }
Example #2
0
 private Remote(RemoteSafeHandle handle, Repository repository)
 {
     this.repository = repository;
     Name            = Proxy.git_remote_name(handle);
     Url             = Proxy.git_remote_url(handle);
     TagFetchMode    = Proxy.git_remote_autotag(handle);
     refSpecs        = new RefSpecCollection(handle);
 }
Example #3
0
 internal Remote(RemoteSafeHandle handle, Repository repository)
 {
     this.repository = repository;
     this.handle     = handle;
     Name            = Proxy.git_remote_name(handle);
     Url             = Proxy.git_remote_url(handle);
     PushUrl         = Proxy.git_remote_pushurl(handle);
     TagFetchMode    = Proxy.git_remote_autotag(handle);
     refSpecs        = new RefSpecCollection(this, handle);
 }
Example #4
0
 internal RefSpecCollection(LibGit2Sharp.RefSpecCollection collection)
 => this.innerCollection = collection.NotNull();