feat: pass gitignore path to watch_source_files function

This commit is contained in:
Paul Gauthier (aider) 2024-10-25 12:56:20 -07:00
parent 6a1754aa6a
commit bc4664d62c

View file

@ -367,9 +367,9 @@ class InputOutput:
stop_event = threading.Event()
def watch_files():
gitignore = Path(root) / ".gitignore"
try:
for changed in watch_source_files(root, stop_event=stop_event):
gitignore = [str(Path(root) / ".gitignore")]
for changed in watch_source_files(root, stop_event=stop_event, gitignores=gitignore):
dump(changed)
if changed:
self.changed_files = list(changed)[0] # Take the first changed file