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

Method SetDiffMap

internal/tool/file_read_diff.go:42–44  ·  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

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

Callers 3

injectScanContentMapMethod · 0.80
injectDiffMapMethod · 0.80

Calls

no outgoing calls

Tested by 1