fix: remove stray comment and add sorting note in cmd_read

This commit is contained in:
Paul Gauthier 2024-10-24 13:46:25 -07:00 committed by Paul Gauthier (aider)
parent 6181fe5efa
commit c9993dccc8

View file

@ -678,9 +678,6 @@ class Commands:
res = list(map(str, matched_files))
return res
make the same change to cmd_read @ai <======
def cmd_add(self, args):
"Add files to the chat so aider can edit them or review them in detail"
@ -1165,6 +1162,8 @@ class Commands:
self.io.tool_error("Please provide filenames or directories to read.")
return
## we need to collect all the expanded filenames, *then* sort them @ai
filenames = parse_quoted_filenames(args)
for pattern in sorted(filenames):
# Expand tilde for home directory