MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / reset

Method reset

source code/utils/git/gitFilesystem.ts:490–497  ·  view source on GitHub ↗

Reset all state. Stops file watchers. For testing only.

()

Source from the content-addressed store, hash-verified

488
489 /** Reset all state. Stops file watchers. For testing only. */
490 reset(): void {
491 this.stopWatching()
492 this.cache.clear()
493 this.initialized = false
494 this.initPromise = null
495 this.gitDir = null
496 this.commonDir = null
497 }
498}
499
500const gitWatcher = new GitFileWatcher()

Callers

nothing calls this directly

Calls 2

stopWatchingMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected