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

Function dirIsInGitRepo

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

Source from the content-addressed store, hash-verified

251}
252
253export const dirIsInGitRepo = async (cwd: string): Promise<boolean> => {
254 return findGitRoot(cwd) !== null
255}
256
257export const getHead = async (): Promise<string> => {
258 return getCachedHead()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected