(idx *index.Index, filename string, h plumbing.Hash)
| 527 | } |
| 528 | |
| 529 | func (w *Worktree) doAddFileToIndex(idx *index.Index, filename string, h plumbing.Hash) error { |
| 530 | return w.doUpdateFileToIndex(idx.Add(filename), filename, h) |
| 531 | } |
| 532 | |
| 533 | func (w *Worktree) doUpdateFileToIndex(e *index.Entry, filename string, h plumbing.Hash) error { |
| 534 | info, err := w.Filesystem.Lstat(filename) |
no test coverage detected