public GitPack(GitRepository repository, string name)
 {
     this.repository  = repository ?? throw new ArgumentNullException(nameof(repository));
     this.name        = name ?? throw new ArgumentNullException(nameof(name));
     this.indexReader = new Lazy <GitPackIndexReader>(OpenIndex);
     this.cache       = repository.CacheFactory(this);
 }
Пример #2
0
 public GitPack(GitRepository repository, string name)
 {
     this.repository  = repository ?? throw new ArgumentNullException(nameof(repository));
     this.name        = name ?? throw new ArgumentNullException(nameof(name));
     this.indexReader = new Lazy <GitPackIndexReader>(OpenIndex);
     this.packPath    = Path.Combine(this.repository.ObjectDirectory, "pack", $"{this.name}.pack");
     this.cache       = repository.CacheFactory(this);
 }