MCPcopy
hub / github.com/continuedev/continue / getDiffFn

Function getDiffFn

core/autocomplete/snippets/gitDiffCache.ts:66–68  ·  view source on GitHub ↗
(ide: IDE)

Source from the content-addressed store, hash-verified

64
65// factory to make diff cache more testable
66export function getDiffFn(ide: IDE): GetDiffFn {
67 return () => ide.getDiff(true);
68}
69
70export async function getDiffsFromCache(ide: IDE): Promise<string[]> {
71 const diffCache = GitDiffCache.getInstance(getDiffFn(ide));

Callers 2

handleFilesChangedMethod · 0.90
getDiffsFromCacheFunction · 0.85

Calls 1

getDiffMethod · 0.65

Tested by

no test coverage detected