Expand description
Filesystem watcher: debounced notify events on the repo become
AppEvent::RepoChanged. Noise sources (the session store, lockfiles,
git’s object database) are filtered out so staging or saving a comment
does not echo back as a repo change.
Structs§
- Watcher
Handle - Keeps the watcher alive and exposes its health: when notify reports errors the app falls back to periodic polling.
Functions§
- spawn_
watcher - Watch the repository and send
RepoChangedfor relevant debounced events. The recursive root watch already covers an in-tree.git; the explicit HEAD/refs/index watches on the resolvedgit_dircover linked worktrees, whose gitdir lives outside the workdir.