NewObjectStorageWithOptions creates a new ObjectStorage with the given .git directory, cache and extra options
(dir *dotgit.DotGit, objectCache cache.Object, ops Options)
| 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 { |
| 44 | return &ObjectStorage{ |
| 45 | options: ops, |
| 46 | objectCache: objectCache, |
| 47 | dir: dir, |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | func (s *ObjectStorage) requireIndex() error { |
| 52 | if s.index != nil { |
no outgoing calls