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

Method Open

storage/filesystem/dotgit/dotgit_test.go:994–1000  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

992}
993
994func (f *notExistsFS) Open(filename string) (billy.File, error) {
995 if f.matches(filename) {
996 return nil, os.ErrNotExist
997 }
998
999 return f.Filesystem.Open(filename)
1000}
1001
1002func (f *notExistsFS) ReadDir(path string) ([]os.FileInfo, error) {
1003 if f.matches(path) {

Callers 15

dotGitFileToOSFilesystemFunction · 0.45
dotGitCommonDirectoryFunction · 0.45
readGitmodulesFileMethod · 0.45
TestCheckoutMethod · 0.45
ExampleCloneFunction · 0.45
ExamplePlainCloneFunction · 0.45
mainFunction · 0.45
getCommitNodeIndexFunction · 0.45

Calls 1

matchesMethod · 0.95

Tested by

no test coverage detected