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

Method Open

storage/filesystem/dotgit/repository_filesystem.go:57–59  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

55}
56
57func (fs *RepositoryFilesystem) Open(filename string) (billy.File, error) {
58 return fs.mapToRepositoryFsByPath(filename).Open(filename)
59}
60
61func (fs *RepositoryFilesystem) OpenFile(filename string, flag int, perm os.FileMode) (billy.File, error) {
62 return fs.mapToRepositoryFsByPath(filename).OpenFile(filename, flag, perm)

Callers 1

Calls 1

Tested by 1