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

Function realpath

src/sync/worktree.ts:255–261  ·  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

253
254/** Resolve symlinks where possible so tmp/realpath quirks don't break equality. */
255function realpath(p: string): string {
256 try {
257 return fs.realpathSync(path.resolve(p));
258 } catch {
259 return path.resolve(p);
260 }
261}

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