Class LineDiff
java.lang.Object
network.ike.plugin.scaffold.LineDiff
Minimal LCS-based line differ used by tracked and tracked-block
tier handlers to build human-readable diff output for
scaffold-draft.
This is not a full unified-diff implementation — we only emit the
prefixed lines (' ', '-', '+') without hunk
headers, which is plenty for draft output where the file path is
already printed separately.
Both inputs are treated as UTF-8 text and split on LF. A trailing
newline is normalised away so "a\n" and "a" produce
identical line lists — callers that care about trailing-newline
differences should compare raw bytes.
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
counts
Count of'+'and'-'lines between two texts.- Parameters:
from- the baseline textto- the new text- Returns:
- a
LineDiff.Countsrecord
-
unified
-