MCPcopy Create free account
hub / github.com/alibaba/open-code-review / SetDiffMap

Method SetDiffMap

internal/tool/file_read_diff.go:39–41  ·  view source on GitHub ↗

SetDiffMap replaces the diff snapshot. Must be called before concurrent access begins.

(dm DiffMap)

Source from the content-addressed store, hash-verified

37
38// SetDiffMap replaces the diff snapshot. Must be called before concurrent access begins.
39func (p *FileReadDiffProvider) SetDiffMap(dm DiffMap) {
40 p.diffMap = dm
41}
42
43func (p *FileReadDiffProvider) Tool() Tool { return FileReadDiff }
44

Callers 3

injectScanContentMapMethod · 0.80
injectDiffMapMethod · 0.80

Calls

no outgoing calls

Tested by 1