pub fn spawn_git_watcher<F>(git_dir: PathBuf, on_change: F) -> JoinHandle<()>Expand description
Spawn a background thread that watches git_dir for changes and calls
on_change after each debounced burst.
Uses a 60-second fallback poll so that the UI eventually reflects external
changes even on network file systems. Use [spawn_git_watcher_with_fallback]
when a custom fallback interval is needed (e.g. in tests).