Skip to main content

LAST_WATCH_REFRESH

Static LAST_WATCH_REFRESH 

Source
static LAST_WATCH_REFRESH: OnceLock<Mutex<HashMap<PathBuf, Instant>>>
Expand description

Per-checkout last refresh, keyed by the scan cwd.

The cadence is per checkout rather than per repository by choice: a worktree’s own scan is its own read, and two checkouts of one repo refreshing their shared ref twice a window is cheap. The run registry below is the one that must be per repository.