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

Method objectPath

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

Source from the content-addressed store, hash-verified

560}
561
562func (d *DotGit) objectPath(h plumbing.Hash) string {
563 hex := h.String()
564 return d.fs.Join(objectsPath, hex[0:2], hex[2:hash.HexSize])
565}
566
567// incomingObjectPath is intended to add support for a git pre-receive hook
568// 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