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

Function statusOf

packages/computer/src/git/worktree.test.ts:41–45  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

39}
40
41async function statusOf(path: string): Promise<[number, number, number] | undefined> {
42 const matrix = await git.statusMatrix({ fs: memfs, dir: DIR });
43 const row = matrix.find((r) => r[0] === path);
44 return row ? [row[1], row[2], row[3]] : undefined;
45}
46
47describe("stashPushWith / stashListWith / stashPopWith", () => {
48 beforeEach(() => vol.reset());

Callers 1

worktree.test.tsFile · 0.70

Calls 2

statusMatrixMethod · 0.65
findMethod · 0.65

Tested by

no test coverage detected