MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / expandFilePath

Function expandFilePath

src/utils/commitAttribution.ts:297–302  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

295 * Expand a relative path to absolute path.
296 */
297export function expandFilePath(filePath: string): string {
298 if (isAbsolute(filePath)) {
299 return filePath
300 }
301 return join(getAttributionRepoRoot(), filePath)
302}
303
304/**
305 * 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