refactor: move gitignore handling from start() to FileWatcher constructor

This commit is contained in:
Paul Gauthier 2024-11-27 16:16:00 -08:00 committed by Paul Gauthier (aider)
parent 3b8a771909
commit da4cb0aa62

View file

@ -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)