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

Function realpath

src/sync/worktree.ts:212–218  ·  view source on GitHub ↗

Resolve symlinks where possible so tmp/realpath quirks don't break equality.

(p: string)

Source from the content-addressed store, hash-verified

210
211/** Resolve symlinks where possible so tmp/realpath quirks don't break equality. */
212function realpath(p: string): string {
213 try {
214 return fs.realpathSync(path.resolve(p));
215 } catch {
216 return path.resolve(p);
217 }
218}

Callers 6

gitWorktreeRootFunction · 0.70
gitCommonDirFunction · 0.70
nestedRepositoryBelowFunction · 0.70
nativeRealpathFunction · 0.70

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected