MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / watchPath

Method watchPath

src/utils/git/gitFilesystem.ts:382–385  ·  view source on GitHub ↗
(path: string, callback: () => void)

Source from the content-addressed store, hash-verified

380 }
381
382 private watchPath(path: string, callback: () => void): void {
383 this.watchedPaths.push(path)
384 watchFile(path, { interval: WATCH_INTERVAL_MS }, callback)
385 }
386
387 /**
388 * Watch the loose ref file for the current branch.

Callers 2

startMethod · 0.95
watchCurrentBranchRefMethod · 0.95

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected