MCPcopy Index your code
hub / github.com/go-git/go-git / NewObjectStorageWithOptions

Function NewObjectStorageWithOptions

storage/filesystem/object.go:45–51  ·  view source on GitHub ↗

NewObjectStorageWithOptions creates a new ObjectStorage with the given .git directory, cache and extra options

(dir *dotgit.DotGit, objectCache cache.Object, ops Options)

Source from the content-addressed store, hash-verified

43
44// NewObjectStorageWithOptions creates a new ObjectStorage with the given .git directory, cache and extra options
45func 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
53func (s *ObjectStorage) requireIndex() error {
54 if s.index != nil {

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…