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

Struct DiffMap

internal/tool/file_read_diff.go:13–15  ·  view source on GitHub ↗

DiffMap is a read-only snapshot of parsed diffs, keyed by file path. Safe for concurrent reads after construction via NewDiffMap.

Source from the content-addressed store, hash-verified

11// DiffMap is a read-only snapshot of parsed diffs, keyed by file path.
12// Safe for concurrent reads after construction via NewDiffMap.
13type DiffMap struct {
14 m map[string]string
15}
16
17// NewDiffMap creates a frozen, read-only DiffMap from a plain map.
18func NewDiffMap(m map[string]string) DiffMap {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected