MCPcopy Index your code
hub / github.com/go-git/go-git / deleteFromFilesystem

Method deleteFromFilesystem

worktree_status.go:669–676  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

667}
668
669func (w *Worktree) deleteFromFilesystem(path string) error {
670 err := w.Filesystem.Remove(path)
671 if os.IsNotExist(err) {
672 return nil
673 }
674
675 return err
676}
677
678// RemoveGlob removes all paths, matching pattern, from the index. If pattern
679// matches a directory path, all directory contents are removed from the index

Callers 1

doRemoveFileMethod · 0.95

Calls 1

RemoveMethod · 0.45

Tested by

no test coverage detected