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

Function createFindGitRoot

source code/utils/git.ts:101–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99export const findGitRoot = createFindGitRoot()
100
101function createFindGitRoot(): {
102 (startPath: string): string | null
103 cache: typeof findGitRootImpl.cache
104} {
105 function wrapper(startPath: string): string | null {
106 const result = findGitRootImpl(startPath)
107 return result === GIT_ROOT_NOT_FOUND ? null : result
108 }
109 wrapper.cache = findGitRootImpl.cache
110 return wrapper
111}
112
113/**
114 * 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