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

Function expandFilePath

source code/utils/commitAttribution.ts:298–303  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

296 * Expand a relative path to absolute path.
297 */
298export function expandFilePath(filePath: string): string {
299 if (isAbsolute(filePath)) {
300 return filePath
301 }
302 return join(getAttributionRepoRoot(), filePath)
303}
304
305/**
306 * Create an empty attribution state for a new session.

Callers 1

getFileMtimeFunction · 0.85

Calls 1

getAttributionRepoRootFunction · 0.85

Tested by

no test coverage detected