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

Struct DiffLine

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

DiffLine is a single line in the diff result.

Source from the content-addressed store, hash-verified

15
16// DiffLine is a single line in the diff result.
17type DiffLine struct {
18 Type DiffLineType
19 Content string
20}
21
22// ComputeLineDiff returns a line-level diff between oldLines and newLines.
23// 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