Skip to content

Commit a17a830

Browse files
committed
Make sure repo map list and agent mode respects aiderignore file
1 parent ffae1fa commit a17a830

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

aider/coders/agent_coder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1915,7 +1915,7 @@ def get_directory_structure(self):
19151915
if line.startswith("??"):
19161916
# Extract the filename (remove the '?? ' prefix)
19171917
untracked_file = line[3:]
1918-
if not self.repo.git_ignored_file(untracked_file):
1918+
if not self.repo.ignored_file(untracked_file):
19191919
untracked_files.append(untracked_file)
19201920
except Exception as e:
19211921
self.io.tool_warning(f"Error getting untracked files: {str(e)}")

aider/coders/base_coder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ def _include_in_map(abs_path):
921921
return False
922922
if ".min." in parts[-1]:
923923
return False
924-
if self.repo.git_ignored_file(abs_path):
924+
if self.repo.ignored_file(abs_path):
925925
return False
926926
return True
927927

0 commit comments

Comments
 (0)