mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 00:05:01 +00:00
Aider should fully ignore files in aiderignore #479
This commit is contained in:
parent
5e60417e5d
commit
a9fe4532c7
5 changed files with 83 additions and 14 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue