mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
Coder.drop_rel_fname
This commit is contained in:
parent
bfd9398f28
commit
0f8efa3714
2 changed files with 7 additions and 2 deletions
|
@ -270,6 +270,12 @@ class Coder:
|
|||
self.abs_fnames.add(self.abs_root_path(rel_fname))
|
||||
self.check_added_files()
|
||||
|
||||
def drop_rel_fname(self, fname):
|
||||
abs_fname = self.abs_root_path(fname)
|
||||
if abs_fname in self.abs_fnames:
|
||||
self.abs_fnames.remove(abs_fname)
|
||||
return True
|
||||
|
||||
def abs_root_path(self, path):
|
||||
res = Path(self.root) / path
|
||||
return utils.safe_abs_path(res)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue