Ejemplo n.º 1
0
 internal Remote(RemoteHandle handle, Repository repository)
 {
     this.repository = repository;
     this.handle     = handle;
     refSpecs        = new RefSpecCollection(this, handle);
     repository.RegisterForCleanup(this);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 4
0
 internal RefSpecCollection(LibGit2Sharp.RefSpecCollection collection)
 => this.innerCollection = collection.NotNull();