MCPcopy
hub / github.com/go-git/go-git / NewRepositoryFilesystem

Function NewRepositoryFilesystem

storage/filesystem/dotgit/repository_filesystem.go:19–24  ·  view source on GitHub ↗
(dotGitFs, commonDotGitFs billy.Filesystem)

Source from the content-addressed store, hash-verified

17}
18
19func NewRepositoryFilesystem(dotGitFs, commonDotGitFs billy.Filesystem) *RepositoryFilesystem {
20 return &RepositoryFilesystem{
21 dotGitFs: dotGitFs,
22 commonDotGitFs: commonDotGitFs,
23 }
24}
25
26func (fs *RepositoryFilesystem) mapToRepositoryFsByPath(path string) billy.Filesystem {
27 // Nothing to decide if commondir not defined

Callers 2

PlainOpenWithOptionsFunction · 0.92

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…