(db *sql.DB, runID, filePath string, out io.Writer)
| 184 | } |
| 185 | |
| 186 | func BlameFileJSON(db *sql.DB, runID, filePath string, out io.Writer) error { |
| 187 | manifest, err := BuildBlameFile(db, runID, filePath) |
| 188 | if err != nil { |
| 189 | return err |
| 190 | } |
| 191 | return printJSON(out, manifest) |
| 192 | } |
| 193 | |
| 194 | func BuildBlameFile(db *sql.DB, runID, filePath string) (FileBlameManifest, error) { |
| 195 | filePath, err := cleanRelativeFile(filePath) |