mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 22:04:59 +00:00
reply with new files content on /add
This commit is contained in:
parent
7a0e020c66
commit
fcaf4e15c8
3 changed files with 24 additions and 2 deletions
|
@ -122,9 +122,12 @@ class Coder:
|
|||
|
||||
self.repo = repo
|
||||
|
||||
def get_files_content(self):
|
||||
def get_files_content(self, fnames=None):
|
||||
if not fnames:
|
||||
fnames = self.abs_fnames
|
||||
|
||||
prompt = ""
|
||||
for fname in self.abs_fnames:
|
||||
for fname in fnames:
|
||||
relative_fname = os.path.relpath(fname, self.root)
|
||||
prompt += utils.quoted_file(fname, relative_fname)
|
||||
return prompt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue