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

Method Module

storage/filesystem/dotgit/dotgit.go:1112–1114  ·  view source on GitHub ↗

Module return a billy.Filesystem pointing to the module folder

(name string)

Source from the content-addressed store, hash-verified

1110
1111// Module return a billy.Filesystem pointing to the module folder
1112func (d *DotGit) Module(name string) (billy.Filesystem, error) {
1113 return d.fs.Chroot(d.fs.Join(modulePath, name))
1114}
1115
1116func (d *DotGit) AddAlternate(remote string) error {
1117 altpath := d.fs.Join(objectsPath, infoPath, alternatesPath)

Callers

nothing calls this directly

Calls 2

ChrootMethod · 0.80
JoinMethod · 0.80

Tested by

no test coverage detected