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