mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 10:45:00 +00:00
feat: sort file lists alphabetically in format_files_for_input
This commit is contained in:
parent
a68178fd1b
commit
bcf781da73
1 changed files with 2 additions and 4 deletions
|
@ -699,15 +699,13 @@ class InputOutput:
|
||||||
)
|
)
|
||||||
self.chat_history_file = None # Disable further attempts to write
|
self.chat_history_file = None # Disable further attempts to write
|
||||||
|
|
||||||
### sort the files! @ai (and also remove this text)
|
|
||||||
|
|
||||||
def format_files_for_input(self, rel_fnames, rel_read_only_fnames):
|
def format_files_for_input(self, rel_fnames, rel_read_only_fnames):
|
||||||
read_only_files = []
|
read_only_files = []
|
||||||
for full_path in rel_read_only_fnames or []:
|
for full_path in sorted(rel_read_only_fnames or []):
|
||||||
read_only_files.append(f"{full_path} (read only)")
|
read_only_files.append(f"{full_path} (read only)")
|
||||||
|
|
||||||
editable_files = []
|
editable_files = []
|
||||||
for full_path in rel_fnames:
|
for full_path in sorted(rel_fnames):
|
||||||
if full_path in rel_read_only_fnames:
|
if full_path in rel_read_only_fnames:
|
||||||
continue
|
continue
|
||||||
editable_files.append(f"{full_path}")
|
editable_files.append(f"{full_path}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue