MCPcopy
hub / github.com/codeaashu/claude-code / getGitDir

Function getGitDir

src/utils/git.ts:231–233  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

229})
230
231export function getGitDir(cwd: string): Promise<string | null> {
232 return resolveGitDir(cwd)
233}
234
235export async function isAtGitRoot(): Promise<boolean> {
236 const cwd = getCwd()

Callers 2

isInTransientGitStateFunction · 0.85
readLastFetchTimeFunction · 0.85

Calls 1

resolveGitDirFunction · 0.85

Tested by

no test coverage detected