(dst io.Writer, path string, fi os.FileInfo)
| 504 | } |
| 505 | |
| 506 | func (w *Worktree) fillEncodedObjectFromSymlink(dst io.Writer, path string, fi os.FileInfo) error { |
| 507 | target, err := w.Filesystem.Readlink(path) |
| 508 | if err != nil { |
| 509 | return err |
| 510 | } |
| 511 | |
| 512 | _, err = dst.Write([]byte(target)) |
| 513 | return err |
| 514 | } |
| 515 | |
| 516 | func (w *Worktree) addOrUpdateFileToIndex(idx *index.Index, filename string, h plumbing.Hash) error { |
| 517 | e, err := idx.Entry(filename) |
no test coverage detected