From da4cb0aa62a03a02ff21be966b4424c25129d049 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 27 Nov 2024 16:16:00 -0800 Subject: [PATCH] refactor: move gitignore handling from start() to FileWatcher constructor --- aider/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/io.py b/aider/io.py index a832e4f2f..ea099d41b 100644 --- a/aider/io.py +++ b/aider/io.py @@ -391,7 +391,7 @@ class InputOutput: ): self.rule() - # ai: initialize this in __init__! + # ai: the ignores should be passed to FileWater() not start()! self.file_watcher = FileWatcher(root, encoding=self.encoding) gitignore = [str(Path(root) / ".gitignore")] self.file_watcher.start(gitignores=gitignore)