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

Method getParsedDiff

src/main/lib/git/cache/git-cache.ts:279–282  ·  view source on GitHub ↗
(worktreePath: string, diffHash: string)

Source from the content-addressed store, hash-verified

277
278 // Parsed diff cache methods
279 getParsedDiff<T>(worktreePath: string, diffHash: string): T | null {
280 const key = `${worktreePath}:${diffHash}`;
281 return this.parsedDiffCache.getIfHashMatches(key, diffHash) as T | null;
282 }
283
284 setParsedDiff<T>(worktreePath: string, diffHash: string, parsed: T): void {
285 const key = `${worktreePath}:${diffHash}`;

Callers 1

chats.tsFile · 0.80

Calls 1

getIfHashMatchesMethod · 0.80

Tested by

no test coverage detected