MCPcopy
hub / github.com/21st-dev/1code / getFileContent

Method getFileContent

src/main/lib/git/cache/git-cache.ts:295–298  ·  view source on GitHub ↗
(worktreePath: string, filePath: string)

Source from the content-addressed store, hash-verified

293
294 // File contents cache methods
295 getFileContent(worktreePath: string, filePath: string): string | null {
296 const key = `${worktreePath}:${filePath}`;
297 return this.fileContentsCache.get(key);
298 }
299
300 getFileContentIfHashMatches(
301 worktreePath: string,

Callers 1

createFileContentsRouterFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected