mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +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)
|
dump(fnames)
|
||||||
|
|
||||||
# If still no files, get all dirty files in the repo
|
# 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:
|
if not fnames and self.coder.repo:
|
||||||
[
|
fnames = [item.a_path for item in self.coder.repo.repo.index.diff(None)]
|
||||||
fn
|
|
||||||
for fn in tracked_files
|
|
||||||
if self.coder.repo.is_dirty(fn)
|
|
||||||
]
|
|
||||||
|
|
||||||
dump(fnames)
|
dump(fnames)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue