MCPcopy Create free account
hub / github.com/modem-dev/hunk / cleanDiffLine

Function cleanDiffLine

src/ui/diff/pierre.ts:442–444  ·  view source on GitHub ↗

Normalize one raw diff line before rendering.

(line: string | undefined)

Source from the content-addressed store, hash-verified

440
441/** Normalize one raw diff line before rendering. */
442function cleanDiffLine(line: string | undefined) {
443 return tabify(cleanLastNewline(line ?? ""));
444}
445
446/** Build the normalized render model for one split-view cell. */
447function makeSplitCell(

Callers 3

makeSplitCellFunction · 0.85
makeStackCellFunction · 0.85

Calls 1

tabifyFunction · 0.85

Tested by

no test coverage detected