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

Struct DotGit

storage/filesystem/dotgit/dotgit.go:100–114  ·  view source on GitHub ↗

The DotGit type represents a local git repository on disk. This type is not zero-value-safe, use the New function to initialize it.

Source from the content-addressed store, hash-verified

98// The DotGit type represents a local git repository on disk. This
99// type is not zero-value-safe, use the New function to initialize it.
100type DotGit struct {
101 options Options
102 fs billy.Filesystem
103
104 // incoming object directory information
105 incomingChecked bool
106 incomingDirName string
107
108 objectList []plumbing.Hash // sorted
109 objectMap map[plumbing.Hash]struct{}
110 packList []plumbing.Hash
111 packMap map[plumbing.Hash]struct{}
112
113 files map[plumbing.Hash]billy.File
114}
115
116// New returns a DotGit value ready to be used. The path argument must
117// be the absolute path of a git repository directory (e.g.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected