Aider should fully ignore files in aiderignore #479

This commit is contained in:
Paul Gauthier 2024-02-24 09:38:06 -08:00
parent 5e60417e5d
commit a9fe4532c7
5 changed files with 83 additions and 14 deletions

View file

@ -41,6 +41,8 @@ class GitRepo:
repo_paths.append(repo_path)
except git.exc.InvalidGitRepositoryError:
pass
except git.exc.NoSuchPathError:
pass
num_repos = len(set(repo_paths))
@ -194,10 +196,7 @@ class GitRepo:
files.extend(staged_files)
# convert to appropriate os.sep, since git always normalizes to /
res = set(
self.normalize_path(path)
for path in files
)
res = set(self.normalize_path(path) for path in files)
return self.filter_ignored_files(res)