mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
Use more efficient method to get all dirty files in cmd_lint
This commit is contained in:
parent
5f9275a3c2
commit
07780326b4
1 changed files with 1 additions and 6 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue