MCPcopy Create free account
hub / github.com/cloudflare/computer / statusOf

Function statusOf

packages/computer/src/git/staging.test.ts:24–29  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

22}
23
24async function statusOf(path: string): Promise<[number, number, number] | undefined> {
25 const matrix = await git.statusMatrix({ fs: memfs, dir: DIR });
26 const row = matrix.find((r) => r[0] === path);
27 if (!row) return undefined;
28 return [row[1], row[2], row[3]];
29}
30
31describe("addWith", () => {
32 beforeEach(() => vol.reset());

Callers 1

staging.test.tsFile · 0.70

Calls 2

statusMatrixMethod · 0.65
findMethod · 0.65

Tested by

no test coverage detected