MCPcopy Create free account
hub / github.com/arctic-cli/interface / flush

Function flush

packages/arctic/src/snapshot/index.ts:327–334  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

325 let currentFile: string | undefined
326
327 const flush = () => {
328 if (!current.length) return
329 if (!currentFile || !options.exclude.has(currentFile)) {
330 blocks.push(current.join("\n"))
331 }
332 current = []
333 currentFile = undefined
334 }
335
336 for (const line of patch.split("\n")) {
337 if (line.startsWith("diff --git ")) {

Callers 1

filterPatchFunction · 0.70

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected