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); }
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); }