mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
feat: pass gitignore path to watch_source_files function
This commit is contained in:
parent
6a1754aa6a
commit
bc4664d62c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue