MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / real

Function real

__tests__/worktree-detection.test.ts:35–37  ·  view source on GitHub ↗

realpath so macOS /var → /private/var symlinking doesn't break equality.

(p: string)

Source from the content-addressed store, hash-verified

33
34/** realpath so macOS /var → /private/var symlinking doesn't break equality. */
35function real(p: string): string {
36 return fs.realpathSync(path.resolve(p));
37}
38
39describe('detectWorktreeIndexMismatch (issue #155)', () => {
40 let mainRepo: string; // main checkout — owns the .codegraph index

Callers 7

mocklessContextForMethod · 0.85
recordRealpathsFunction · 0.85
failNewTsFunction · 0.85

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected