MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / dirIsInGitRepo

Function dirIsInGitRepo

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected