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