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

Method Readlink

worktree_fs.go:118–123  ·  view source on GitHub ↗
(link string)

Source from the content-addressed store, hash-verified

116}
117
118func (sfs *worktreeFilesystem) Readlink(link string) (string, error) {
119 if err := sfs.validReadPath(link); err != nil {
120 return "", fmt.Errorf("readlink: %w", err)
121 }
122 return sfs.Filesystem.Readlink(link)
123}
124
125func (sfs *worktreeFilesystem) MkdirAll(path string, perm os.FileMode) error {
126 // MkdirAll on the worktree root is a no-op: the root always exists,

Calls 1

validReadPathMethod · 0.95

Tested by 2

TestCheckoutSymlinkMethod · 0.36