MCPcopy
hub / github.com/go-git/go-git / objectPackPath

Method objectPackPath

storage/filesystem/dotgit/dotgit.go:270–272  ·  view source on GitHub ↗
(hash plumbing.Hash, extension string)

Source from the content-addressed store, hash-verified

268}
269
270func (d *DotGit) objectPackPath(hash plumbing.Hash, extension string) string {
271 return d.fs.Join(objectsPath, packPath, fmt.Sprintf("pack-%s.%s", hash.String(), extension))
272}
273
274func (d *DotGit) objectPackOpen(hash plumbing.Hash, extension string) (billy.File, error) {
275 if d.options.KeepDescriptors && extension == "pack" {

Callers 2

objectPackOpenMethod · 0.95

Calls 2

JoinMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected