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

Function newWorktreeFilesystem

worktree_fs.go:48–50  ·  view source on GitHub ↗
(fs billy.Filesystem, protectNTFS, protectHFS bool)

Source from the content-addressed store, hash-verified

46}
47
48func newWorktreeFilesystem(fs billy.Filesystem, protectNTFS, protectHFS bool) *worktreeFilesystem {
49 return &worktreeFilesystem{Filesystem: fs, protectNTFS: protectNTFS, protectHFS: protectHFS}
50}
51
52func (sfs *worktreeFilesystem) Create(filename string) (billy.File, error) {
53 if err := sfs.validPath(filename); err != nil {

Callers 4

WorktreeMethod · 0.85
TestValidPathFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestValidPathFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…