(dst io.Writer, path string, _ os.FileInfo)
| 523 | } |
| 524 | |
| 525 | func (w *Worktree) fillEncodedObjectFromSymlink(dst io.Writer, path string, _ os.FileInfo) error { |
| 526 | target, err := w.Filesystem.Readlink(path) |
| 527 | if err != nil { |
| 528 | return err |
| 529 | } |
| 530 | |
| 531 | _, err = dst.Write([]byte(target)) |
| 532 | return err |
| 533 | } |
| 534 | |
| 535 | func (w *Worktree) addOrUpdateFileToIndex(idx *index.Index, filename string, h plumbing.Hash) error { |
| 536 | e, err := idx.Entry(filename) |
no test coverage detected