(idx *index.Index, path string)
| 649 | } |
| 650 | |
| 651 | func (w *Worktree) doRemoveFile(idx *index.Index, path string) (plumbing.Hash, error) { |
| 652 | hash, err := w.deleteFromIndex(idx, path) |
| 653 | if err != nil { |
| 654 | return plumbing.ZeroHash, err |
| 655 | } |
| 656 | |
| 657 | return hash, w.deleteFromFilesystem(path) |
| 658 | } |
| 659 | |
| 660 | func (w *Worktree) deleteFromIndex(idx *index.Index, path string) (plumbing.Hash, error) { |
| 661 | e, err := idx.Remove(path) |
no test coverage detected