NewObjectStorage creates a new ObjectStorage with the given .git directory and cache.
(dir *dotgit.DotGit, objectCache cache.Object)
| 36 | |
| 37 | // NewObjectStorage creates a new ObjectStorage with the given .git directory and cache. |
| 38 | func NewObjectStorage(dir *dotgit.DotGit, objectCache cache.Object) *ObjectStorage { |
| 39 | return NewObjectStorageWithOptions(dir, objectCache, Options{}) |
| 40 | } |
| 41 | |
| 42 | // NewObjectStorageWithOptions creates a new ObjectStorage with the given .git directory, cache and extra options |
| 43 | func NewObjectStorageWithOptions(dir *dotgit.DotGit, objectCache cache.Object, ops Options) *ObjectStorage { |