From aa6d9779d3b89c85edca8592d5fbe2a3f4d21c99 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 1 Dec 2024 08:08:54 -0800 Subject: [PATCH] refactor: simplify gitignore filter function creation --- aider/watch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/watch.py b/aider/watch.py index ae6c61095..8faad7920 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -76,7 +76,7 @@ class FileWatcher: self.changed_files = set() self.gitignores = gitignores - # Create filter function during initialization + #ai stop making this so indirect; just `def filter_func()` and use self.gitignores in it! gitignore_paths = [Path(g) for g in self.gitignores] if self.gitignores else [] gitignore_spec = load_gitignores(gitignore_paths) self.filter_func = self.create_filter_func(gitignore_spec, None)