mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 12:45:00 +00:00
standardize on abs_root_path(), simplify get/apply_edit
This commit is contained in:
parent
f45bcbf8eb
commit
e608a351f0
4 changed files with 19 additions and 17 deletions
|
@ -22,7 +22,8 @@ class EditBlockCoder(Coder):
|
|||
return edits
|
||||
|
||||
def apply_edits(self, edits):
|
||||
for path, full_path, original, updated in edits:
|
||||
for path, original, updated in edits:
|
||||
full_path = self.abs_root_path(path)
|
||||
content = self.io.read_text(full_path)
|
||||
content = do_replace(full_path, content, original, updated)
|
||||
if content:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue