pub async fn watch(
root: &Path,
src: &Path,
repo: &str,
view: &str,
config: WatchConfig,
gc: bool,
) -> Result<()>Expand description
Watch src and keep the (repo, view) code-graph view in sync until
Ctrl-C. Runs one index up front, then re-indexes on a debounced burst of
filesystem changes and on a periodic full-reconcile tick. Long-running:
returns Ok(()) on graceful shutdown.
When gc is set, every index (the initial prime, each debounced re-index,
and each periodic reconcile) sweeps orphaned slices across all live views —
so --gc is honored under --watch rather than silently dropped (#157).