(idx *index.Index, path string)
| 658 | } |
| 659 | |
| 660 | func (w *Worktree) deleteFromIndex(idx *index.Index, path string) (plumbing.Hash, error) { |
| 661 | e, err := idx.Remove(path) |
| 662 | if err != nil { |
| 663 | return plumbing.ZeroHash, err |
| 664 | } |
| 665 | |
| 666 | return e.Hash, nil |
| 667 | } |
| 668 | |
| 669 | func (w *Worktree) deleteFromFilesystem(path string) error { |
| 670 | err := w.Filesystem.Remove(path) |
no test coverage detected