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

Struct ObjectStorage

storage/filesystem/object.go:22–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20)
21
22type ObjectStorage struct {
23 options Options
24
25 // objectCache is an object cache uses to cache delta's bases and also recently
26 // loaded loose objects
27 objectCache cache.Object
28
29 dir *dotgit.DotGit
30 index map[plumbing.Hash]idxfile.Index
31
32 packList []plumbing.Hash
33 packListIdx int
34 packfiles map[plumbing.Hash]*packfile.Packfile
35}
36
37// NewObjectStorage creates a new ObjectStorage with the given .git directory and cache.
38func NewObjectStorage(dir *dotgit.DotGit, objectCache cache.Object) *ObjectStorage {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected