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

Struct DiffLine

internal/suggestdiff/diff.go:20–23  ·  view source on GitHub ↗

DiffLine is a single line in the diff result.

Source from the content-addressed store, hash-verified

18
19// DiffLine is a single line in the diff result.
20type DiffLine struct {
21 Type DiffLineType
22 Content string
23}
24
25// ComputeLineDiff returns a line-level diff between oldLines and newLines.
26// Uses Myers-style LCS to find common subsequences, then emits context/added/deleted lines.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected