(idx *index.Index, path string)
| 629 | } |
| 630 | |
| 631 | func (w *Worktree) deleteFromIndex(idx *index.Index, path string) (plumbing.Hash, error) { |
| 632 | e, err := idx.Remove(path) |
| 633 | if err != nil { |
| 634 | return plumbing.ZeroHash, err |
| 635 | } |
| 636 | |
| 637 | return e.Hash, nil |
| 638 | } |
| 639 | |
| 640 | func (w *Worktree) deleteFromFilesystem(path string) error { |
| 641 | err := w.Filesystem.Remove(path) |
no test coverage detected