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

Function looksLikePathspecMiss

packages/computer/src/git/staging.ts:181–185  ·  view source on GitHub ↗
(cause: unknown)

Source from the content-addressed store, hash-verified

179}
180
181function looksLikePathspecMiss(cause: unknown): boolean {
182 if (!(cause instanceof Error)) return false;
183 const m = cause.message.toLowerCase();
184 return m.includes("could not find") || m.includes("not in the index") || m.includes("enoent");
185}
186
187function firstPathspec(paths: string[]): string {
188 return paths[0] ?? "";

Callers 2

addWithFunction · 0.85
rmWithFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected