MCPcopy
hub / github.com/Aider-AI/aider / apply_edits

Method apply_edits

aider/coders/wholefile_coder.py:124–128  ·  view source on GitHub ↗
(self, edits)

Source from the content-addressed store, hash-verified

122 return refined_edits
123
124 def apply_edits(self, edits):
125 for path, fname_source, new_lines in edits:
126 full_path = self.abs_root_path(path)
127 new_lines = "".join(new_lines)
128 self.io.write_text(full_path, new_lines)
129
130 def do_live_diff(self, full_path, new_lines, final):
131 if Path(full_path).exists():

Callers

nothing calls this directly

Calls 2

write_textMethod · 0.80
abs_root_pathMethod · 0.45

Tested by

no test coverage detected