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

Method objectPath

storage/filesystem/dotgit/dotgit.go:569–572  ·  view source on GitHub ↗
(h plumbing.Hash)

Source from the content-addressed store, hash-verified

567}
568
569func (d *DotGit) objectPath(h plumbing.Hash) string {
570 hex := h.String()
571 return d.fs.Join(objectsPath, hex[0:2], hex[2:hash.HexSize])
572}
573
574// incomingObjectPath is intended to add support for a git pre-receive hook
575// to be written it adds support for go-git to find objects in an "incoming"

Callers 3

ObjectMethod · 0.95
ObjectStatMethod · 0.95
ObjectDeleteMethod · 0.95

Calls 2

JoinMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected