refactor: consolidate file watching code into dedicated class

This commit is contained in:
Paul Gauthier 2024-11-27 16:12:59 -08:00 committed by Paul Gauthier (aider)
parent f7a05cf077
commit af195a610c
2 changed files with 4 additions and 2 deletions

View file

@ -61,6 +61,7 @@ def load_gitignores(gitignore_paths: list[Path]) -> Optional[PathSpec]:
return PathSpec.from_lines(GitWildMatchPattern, patterns) if patterns else None
# ai: make a class for this that includes the code from io!
def watch_source_files(
directory: str,
stop_event=None,