MCPcopy Index your code
hub / github.com/21st-dev/1code / getFileContentIfHashMatches

Method getFileContentIfHashMatches

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

Source from the content-addressed store, hash-verified

298 }
299
300 getFileContentIfHashMatches(
301 worktreePath: string,
302 filePath: string,
303 contentHash: string,
304 ): string | null {
305 const key = `${worktreePath}:${filePath}`;
306 return this.fileContentsCache.getIfHashMatches(key, contentHash);
307 }
308
309 setFileContent(
310 worktreePath: string,

Callers

nothing calls this directly

Calls 1

getIfHashMatchesMethod · 0.80

Tested by

no test coverage detected