mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
fix: Add caching and logging for ignored file checks
This commit is contained in:
parent
1c6cdb97ae
commit
f26862d92c
1 changed files with 3 additions and 1 deletions
|
@ -263,6 +263,7 @@ class GitRepo:
|
|||
return self.ignore_file_cache[fname]
|
||||
|
||||
result = self.ignored_file_raw(fname)
|
||||
dump(fname, result)
|
||||
self.ignore_file_cache[fname] = result
|
||||
return result
|
||||
|
||||
|
@ -271,7 +272,8 @@ class GitRepo:
|
|||
try:
|
||||
fname_path = Path(self.normalize_path(fname)).resolve()
|
||||
cwd_path = Path.cwd().resolve()
|
||||
|
||||
dump(fname_path)
|
||||
dump(cwd_path)
|
||||
if not fname_path.is_relative_to(cwd_path):
|
||||
return True
|
||||
except ValueError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue