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