(idx *index.Index, path string)
| 620 | } |
| 621 | |
| 622 | func (w *Worktree) doRemoveFile(idx *index.Index, path string) (plumbing.Hash, error) { |
| 623 | hash, err := w.deleteFromIndex(idx, path) |
| 624 | if err != nil { |
| 625 | return plumbing.ZeroHash, err |
| 626 | } |
| 627 | |
| 628 | return hash, w.deleteFromFilesystem(path) |
| 629 | } |
| 630 | |
| 631 | func (w *Worktree) deleteFromIndex(idx *index.Index, path string) (plumbing.Hash, error) { |
| 632 | e, err := idx.Remove(path) |
no test coverage detected