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

Struct DiffMap

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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected