From f26862d92c6e528a9e5e1c0f74e5758c80fd6dac Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 1 Aug 2024 16:28:09 -0300 Subject: [PATCH] fix: Add caching and logging for ignored file checks --- aider/repo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aider/repo.py b/aider/repo.py index 41b0b5d8a..3410a8bd1 100644 --- a/aider/repo.py +++ b/aider/repo.py @@ -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: