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

Function DiffFile

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

Source from the content-addressed store, hash-verified

80}
81
82func DiffFile(db *sql.DB, runID, filePath string, out io.Writer) error {
83 manifest, err := BuildDiffFile(db, runID, filePath)
84 if err != nil {
85 return err
86 }
87 PrintDiffFile(out, manifest)
88 return nil
89}
90
91func DiffFileJSON(db *sql.DB, runID, filePath string, out io.Writer) error {
92 manifest, err := BuildDiffFile(db, runID, filePath)

Callers 3

graphCmdFunction · 0.92
explainFileFunction · 0.85

Calls 2

BuildDiffFileFunction · 0.85
PrintDiffFileFunction · 0.85

Tested by 1