MCPcopy Create free account
hub / github.com/go-git/go-git / Storage

Struct Storage

storage/filesystem/storage.go:14–24  ·  view source on GitHub ↗

Storage is an implementation of git.Storer that stores data on disk in the standard git format (this is, the .git directory). Zero values of this type are not safe to use, see the NewStorage function below.

Source from the content-addressed store, hash-verified

12// standard git format (this is, the .git directory). Zero values of this type
13// are not safe to use, see the NewStorage function below.
14type Storage struct {
15 fs billy.Filesystem
16 dir *dotgit.DotGit
17
18 ObjectStorage
19 ReferenceStorage
20 IndexStorage
21 ShallowStorage
22 ConfigStorage
23 ModuleStorage
24}
25
26// Options holds configuration for the storage.
27type Options struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected