MCPcopy Index your code
hub / github.com/Waishnav/devspace / isGitUnavailable

Function isGitUnavailable

src/git-worktrees.ts:183–190  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

181}
182
183function isGitUnavailable(error: unknown): boolean {
184 return Boolean(
185 typeof error === "object" &&
186 error &&
187 "code" in error &&
188 (error as { code?: unknown }).code === "ENOENT",
189 );
190}

Callers 2

resolveGitRootFunction · 0.85
gitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected