pub async fn cmd_watch(cli: &Cli, args: WatchArgs) -> Result<()>Expand description
Top-level entry point. Threading-wise:
- Open the repository (canonical path discovery walks parents).
- Replay the
--sincewindow, emitting in chronological order. - Spawn a
notifywatcher on the oplog file — the channel sends events into the main loop, which drains pending entries (id > watermark) on each modify and exits cleanly on SIGINT.