mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
fix: Exclude read-only files from get_addable_relative_files
This commit is contained in:
parent
330c0fcd29
commit
3a3d34b8f2
1 changed files with 4 additions and 1 deletions
|
@ -1451,7 +1451,10 @@ class Coder:
|
|||
return max(path.stat().st_mtime for path in files)
|
||||
|
||||
def get_addable_relative_files(self):
|
||||
return set(self.get_all_relative_files()) - set(self.get_inchat_relative_files())
|
||||
all_files = set(self.get_all_relative_files())
|
||||
inchat_files = set(self.get_inchat_relative_files())
|
||||
read_only_files = set(self.get_rel_fname(fname) for fname in self.abs_read_only_fnames)
|
||||
return all_files - inchat_files - read_only_files
|
||||
|
||||
def check_for_dirty_commit(self, path):
|
||||
if not self.repo:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue