MCPcopy Create free account
hub / github.com/ByteYellow/AgentProvenance / BlameFileJSON

Function BlameFileJSON

internal/provenance/diff.go:186–192  ·  view source on GitHub ↗
(db *sql.DB, runID, filePath string, out io.Writer)

Source from the content-addressed store, hash-verified

184}
185
186func 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
194func BuildBlameFile(db *sql.DB, runID, filePath string) (FileBlameManifest, error) {
195 filePath, err := cleanRelativeFile(filePath)

Callers 2

graphCmdFunction · 0.92
TestDiffAndBlameJSONFunction · 0.85

Calls 2

BuildBlameFileFunction · 0.85
printJSONFunction · 0.70

Tested by 1

TestDiffAndBlameJSONFunction · 0.68