mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +00:00
refac
This commit is contained in:
parent
27199becd4
commit
a725e18ad1
1 changed files with 13 additions and 11 deletions
|
@ -191,19 +191,21 @@ class Coder:
|
||||||
|
|
||||||
def get_map(self, chat_files, other_files):
|
def get_map(self, chat_files, other_files):
|
||||||
res = self.choose_files_listing(other_files)
|
res = self.choose_files_listing(other_files)
|
||||||
if res:
|
if not res:
|
||||||
files_listing, ctags_msg = res
|
return
|
||||||
|
|
||||||
if chat_files:
|
files_listing, ctags_msg = res
|
||||||
other = "other "
|
|
||||||
else:
|
|
||||||
other = ""
|
|
||||||
|
|
||||||
repo_content = prompts.repo_content_prefix.format(
|
if chat_files:
|
||||||
other=other,
|
other = "other "
|
||||||
ctags_msg=ctags_msg,
|
else:
|
||||||
)
|
other = ""
|
||||||
repo_content += files_listing
|
|
||||||
|
repo_content = prompts.repo_content_prefix.format(
|
||||||
|
other=other,
|
||||||
|
ctags_msg=ctags_msg,
|
||||||
|
)
|
||||||
|
repo_content += files_listing
|
||||||
|
|
||||||
return repo_content
|
return repo_content
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue