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

Method objectPackPath

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

Source from the content-addressed store, hash-verified

261}
262
263func (d *DotGit) objectPackPath(hash plumbing.Hash, extension string) string {
264 return d.fs.Join(objectsPath, packPath, fmt.Sprintf("pack-%s.%s", hash.String(), extension))
265}
266
267func (d *DotGit) objectPackOpen(hash plumbing.Hash, extension string) (billy.File, error) {
268 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