(repoDir, relPath string)
| 17 | var errWorkspaceFileTooLarge = errors.New("workspace file exceeds size limit") |
| 18 | |
| 19 | func readWorkspaceFileForDiff(repoDir, relPath string) ([]byte, error) { |
| 20 | return readWorkspaceFileForDiffWithLimit(repoDir, relPath, 0) |
| 21 | } |
| 22 | |
| 23 | func readWorkspaceFileForDiffWithLimit(repoDir, relPath string, maxSize int64) ([]byte, error) { |
| 24 | repoRoot, err := pathutil.CanonicalPath(repoDir) |