| 20 | ) |
| 21 | |
| 22 | type 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. |
| 38 | func NewObjectStorage(dir *dotgit.DotGit, objectCache cache.Object) *ObjectStorage { |
nothing calls this directly
no outgoing calls
no test coverage detected