do not cache aiderignore

This commit is contained in:
Paul Gauthier 2023-10-18 12:06:47 -07:00
parent cf00037442
commit d1cd0f9860

View file

@ -206,10 +206,6 @@ class GitRepo:
if not self.aider_ignore_file or not self.aider_ignore_file.is_file():
return fnames
mtime = self.aider_ignore_file.stat().st_mtime_ns
if mtime != self.aider_ignore_ts:
self.aider_ignore_ts = mtime
lines = self.aider_ignore_file.read_text().splitlines()
self.aider_ignore_spec = pathspec.PathSpec.from_lines(
pathspec.patterns.GitWildMatchPattern,