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

Struct RepositoryFilesystem

storage/filesystem/dotgit/repository_filesystem.go:14–17  ·  view source on GitHub ↗

RepositoryFilesystem is a billy.Filesystem compatible object wrapper which handles dot-git filesystem operations and supports commondir according to git scm layout: https://github.com/git/git/blob/master/Documentation/gitrepository-layout.txt

Source from the content-addressed store, hash-verified

12// which handles dot-git filesystem operations and supports commondir according to git scm layout:
13// https://github.com/git/git/blob/master/Documentation/gitrepository-layout.txt
14type RepositoryFilesystem struct {
15 dotGitFs billy.Filesystem
16 commonDotGitFs billy.Filesystem
17}
18
19func NewRepositoryFilesystem(dotGitFs, commonDotGitFs billy.Filesystem) *RepositoryFilesystem {
20 return &RepositoryFilesystem{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected