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

Function flushPending

src/iterSideBySideDiffs.ts:66–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 }
65
66 async function* flushPending() {
67 if (state === 'unified-diff' || state === 'combined-diff') {
68 yield* yieldFileName();
69 } else if (state === 'unified-diff-hunk-body') {
70 yield* yieldHunk('unified-diff');
71 } else if (state === 'combined-diff-hunk-body') {
72 yield* yieldHunk('combined-diff');
73 }
74 }
75
76 for await (const rawLine of lines) {
77 const line = rawLine.replace(ANSI_COLOR_CODE_REGEX, '');

Callers 1

Calls 2

yieldFileNameFunction · 0.85
yieldHunkFunction · 0.85

Tested by

no test coverage detected