refactor: move gitignores from FileWatcher.start() to constructor

This commit is contained in:
Paul Gauthier (aider) 2024-11-27 16:16:02 -08:00
parent da4cb0aa62
commit 0fedecff58
2 changed files with 6 additions and 6 deletions

View file

@ -391,10 +391,9 @@ class InputOutput:
):
self.rule()
# 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)
self.file_watcher = FileWatcher(root, encoding=self.encoding, gitignores=gitignore)
self.file_watcher.start()
rel_fnames = list(rel_fnames)
show = ""