(path string)
| 638 | } |
| 639 | |
| 640 | func (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 |