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

Struct DotGit

storage/filesystem/dotgit/dotgit.go:93–107  ·  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

91// The DotGit type represents a local git repository on disk. This
92// type is not zero-value-safe, use the New function to initialize it.
93type DotGit struct {
94 options Options
95 fs billy.Filesystem
96
97 // incoming object directory information
98 incomingChecked bool
99 incomingDirName string
100
101 objectList []plumbing.Hash // sorted
102 objectMap map[plumbing.Hash]struct{}
103 packList []plumbing.Hash
104 packMap map[plumbing.Hash]struct{}
105
106 files map[plumbing.Hash]billy.File
107}
108
109// New returns a DotGit value ready to be used. The path argument must
110// 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