(path string)
| 667 | } |
| 668 | |
| 669 | func (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 |