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