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

Method deleteFromFilesystem

worktree_status.go:640–647  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

638}
639
640func (w *Worktree) deleteFromFilesystem(path string) error {
641 err := w.Filesystem.Remove(path)
642 if os.IsNotExist(err) {
643 return nil
644 }
645
646 return err
647}
648
649// RemoveGlob removes all paths, matching pattern, from the index. If pattern
650// 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