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

Function DiffFileJSON

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

Source from the content-addressed store, hash-verified

89}
90
91func DiffFileJSON(db *sql.DB, runID, filePath string, out io.Writer) error {
92 manifest, err := BuildDiffFile(db, runID, filePath)
93 if err != nil {
94 return err
95 }
96 return printJSON(out, manifest)
97}
98
99func BuildDiffFile(db *sql.DB, runID, filePath string) (FileDiffManifest, error) {
100 filePath, err := cleanRelativeFile(filePath)

Callers 2

graphCmdFunction · 0.92
TestDiffAndBlameJSONFunction · 0.85

Calls 2

BuildDiffFileFunction · 0.85
printJSONFunction · 0.70

Tested by 1

TestDiffAndBlameJSONFunction · 0.68