MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / createFindGitRoot

Function createFindGitRoot

src/utils/git.ts:99–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97export const findGitRoot = createFindGitRoot()
98
99function createFindGitRoot(): {
100 (startPath: string): string | null
101 cache: typeof findGitRootImpl.cache
102} {
103 function wrapper(startPath: string): string | null {
104 const result = findGitRootImpl(startPath)
105 return result === GIT_ROOT_NOT_FOUND ? null : result
106 }
107 wrapper.cache = findGitRootImpl.cache
108 return wrapper
109}
110
111/**
112 * Resolve a git root to the canonical main repository root.

Callers 1

git.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected