mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 18:54:59 +00:00
refactor: remove debug dump() call from watch_source_files function
This commit is contained in:
parent
ff8f3eb8c2
commit
d957adf062
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,6 @@ def watch_source_files(
|
|||
and returns True if it should be ignored
|
||||
"""
|
||||
root = Path(directory)
|
||||
dump(root)
|
||||
|
||||
gitignore_paths = [Path(g) for g in gitignores] if gitignores else []
|
||||
gitignore_spec = load_gitignores(gitignore_paths)
|
||||
|
@ -94,6 +93,7 @@ def watch_source_files(
|
|||
if ignore_func and ignore_func(rel_path):
|
||||
return False
|
||||
|
||||
# ai: check to see if the file contains "# *ai\w", "// *ai\w", case insensitive and only return files that do
|
||||
return is_source_file(path_obj)
|
||||
|
||||
# Watch the directory for changes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue