From 52a467806a12e8aafe5a16bb7a6fc8f585b93044 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 27 Nov 2024 16:19:53 -0800 Subject: [PATCH] feat: add gitignore support to FileWatcher initialization --- aider/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aider/main.py b/aider/main.py index 602066370..ba96f0dc6 100644 --- a/aider/main.py +++ b/aider/main.py @@ -794,6 +794,11 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F if return_coder: return coder + # ai if git_root, use gitignore + gitignore = [str(Path(root) / ".gitignore")] + # ai pass coder.root to FW! + self.file_watcher = FileWatcher(root, encoding=self.encoding, gitignores=gitignore) + coder.show_announcements() if args.show_prompts: