fix: base coder not ignoring gitignore if --file is used.

This commit is contained in:
Paul Gauthier (aider) 2025-05-13 13:38:18 -07:00
parent 0049e78250
commit bc1272f029
2 changed files with 31 additions and 0 deletions

View file

@ -445,6 +445,7 @@ class Coder:
fname = Path(fname)
if self.repo and self.repo.git_ignored_file(fname):
self.io.tool_warning(f"Skipping {fname} that matches gitignore spec.")
continue
if self.repo and self.repo.ignored_file(fname):
self.io.tool_warning(f"Skipping {fname} that matches aiderignore spec.")