From 65f50cf6d0f79ef3b5fe4939ee174510c5c27ce0 Mon Sep 17 00:00:00 2001 From: "Amir Elaguizy (aider)" Date: Mon, 1 Jul 2024 07:48:33 -0500 Subject: [PATCH] Reordered the output of files in chat and repo to improve readability. --- aider/commands.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index 5ea285111..c5ffdd82c 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -613,14 +613,14 @@ class Commands: self.io.tool_output("\nNo files in chat or git repo.") return - if chat_files: - self.io.tool_output("Files in chat:\n") - for file in chat_files: + if other_files: + self.io.tool_output("Repo files not in the chat:\n") + for file in other_files: self.io.tool_output(f" {file}") - if other_files: - self.io.tool_output("\nRepo files not in the chat:\n") - for file in other_files: + if chat_files: + self.io.tool_output("\nFiles in chat:\n") + for file in chat_files: self.io.tool_output(f" {file}") def cmd_help(self, args):