MCPcopy Create free account
hub / github.com/go-git/go-git / ObjectPack

Method ObjectPack

storage/filesystem/dotgit/dotgit.go:302–309  ·  view source on GitHub ↗

ObjectPack returns a fs.File of the given packfile

(hash plumbing.Hash)

Source from the content-addressed store, hash-verified

300
301// ObjectPack returns a fs.File of the given packfile
302func (d *DotGit) ObjectPack(hash plumbing.Hash) (billy.File, error) {
303 err := d.hasPack(hash)
304 if err != nil {
305 return nil, err
306 }
307
308 return d.objectPackOpen(hash, `pack`)
309}
310
311// ObjectPackIdx returns a fs.File of the index file for a given packfile
312func (d *DotGit) ObjectPackIdx(hash plumbing.Hash) (billy.File, error) {

Callers 10

packfileMethod · 0.80
buildPackfileItersMethod · 0.80
TestPackfileIterMethod · 0.80
BenchmarkPackfileIterFunction · 0.80
TestObjectPackMethod · 0.80

Calls 2

hasPackMethod · 0.95
objectPackOpenMethod · 0.95