MCPcopy Create free account
hub / github.com/banga/git-split-diffs / getChangesInLines

Function getChangesInLines

src/highlightChangesInLine.ts:53–63  ·  view source on GitHub ↗
(
    context: Context,
    linesA: (string | null)[],
    linesB: (string | null)[]
)

Source from the content-addressed store, hash-verified

51}
52
53export function getChangesInLines(
54 context: Context,
55 linesA: (string | null)[],
56 linesB: (string | null)[]
57): Array<Change[] | null> {
58 const changes = [];
59 for (const [lineA, lineB] of zip(linesA, linesB)) {
60 changes.push(getChangesInLine(context, lineA ?? null, lineB ?? null));
61 }
62 return changes;
63}
64
65export function highlightChangesInLine(
66 context: Context,

Callers 1

iterFormatHunkFunction · 0.90

Calls 2

zipFunction · 0.90
getChangesInLineFunction · 0.85

Tested by

no test coverage detected