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

Method invalidateWorktree

src/main/lib/git/cache/git-cache.ts:329–333  ·  view source on GitHub ↗
(worktreePath: string)

Source from the content-addressed store, hash-verified

327
328 // Invalidate all caches for a worktree
329 invalidateWorktree(worktreePath: string): void {
330 this.statusCache.delete(worktreePath);
331 this.parsedDiffCache.invalidateByPrefix(worktreePath);
332 this.fileContentsCache.invalidateByPrefix(worktreePath);
333 }
334
335 // Get statistics for monitoring
336 getStats(): {

Callers

nothing calls this directly

Calls 2

invalidateByPrefixMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected