MCPcopy Create free account
hub / github.com/block/buzz / getShikiDiffKind

Function getShikiDiffKind

desktop/src/features/agents/ui/agentSessionFileEditDiff.ts:158–162  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

156}
157
158function getShikiDiffKind(line: string): "add" | "remove" | null {
159 if (SHIKI_ADD_RE.test(line)) return "add";
160 if (SHIKI_REMOVE_RE.test(line)) return "remove";
161 return null;
162}
163
164function classifyUnifiedDiffLine(line: string): FileEditDiffLine {
165 if (/^(diff --git|--- |\+\+\+ |@@)/.test(line)) {

Callers 1

getDiffLinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected