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

Function invalidateGitStateCaches

src/main/lib/git/git-operations.ts:35–39  ·  view source on GitHub ↗
(worktreePath: string)

Source from the content-addressed store, hash-verified

33const PROTECTED_BRANCHES = ["main", "master", "develop", "production", "staging"];
34
35function invalidateGitStateCaches(worktreePath: string): void {
36 gitCache.invalidateStatus(worktreePath);
37 gitCache.invalidateParsedDiff(worktreePath);
38 gitCache.invalidateAllFileContents(worktreePath);
39}
40
41export const createGitOperationsRouter = () => {
42 return router({

Callers 1

Calls 3

invalidateStatusMethod · 0.80
invalidateParsedDiffMethod · 0.80

Tested by

no test coverage detected