Skip to main content

should_trigger_sync

Function should_trigger_sync 

Source
pub fn should_trigger_sync(
    path: &Path,
    watch_dir: &Path,
    gid_dir: &Path,
    ignore_list: &IgnoreList,
) -> bool
Expand description

Check if a changed path should trigger a re-extraction.

Returns false for:

  • Paths inside .gid/ directory
  • Paths matching .gidignore patterns
  • Paths matching common ignore patterns (node_modules, target, .git, etc.)
  • Non-source files (binary, media, etc.)