From 07780326b4d20a54a92802470cdcadbfa81f788c Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 30 Jul 2024 15:09:04 -0300 Subject: [PATCH] Use more efficient method to get all dirty files in cmd_lint --- aider/commands.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index 4e7b21660..607bab9f4 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -230,13 +230,8 @@ class Commands: dump(fnames) # If still no files, get all dirty files in the repo - tracked_files = self.coder.repo.get_tracked_files() if not fnames and self.coder.repo: - [ - fn - for fn in tracked_files - if self.coder.repo.is_dirty(fn) - ] + fnames = [item.a_path for item in self.coder.repo.repo.index.diff(None)] dump(fnames)