MCPcopy
hub / github.com/colbymchenry/codegraph / real

Function real

__tests__/worktree-detection.test.ts:33–35  ·  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

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

Callers 1

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected