Skip to main content

normalize_events

Function normalize_events 

Source
pub fn normalize_events(
    root: &Path,
    changed: &[PathBuf],
    removed: &[PathBuf],
) -> Vec<FileEvent>
Expand description

Normalize raw watcher events into semantic FileEvents.

Takes the project root plus lists of changed (created/modified) and removed paths, and produces a deduplicated list of FileEvents with rename detection. Exclusion is evaluated root-relative so watcher events for a project rooted under an excluded-name ancestor (e.g. ~/.claude/...) are not silently dropped (#358).