Add linting for all dirty files in the repository

This commit is contained in:
Paul Gauthier 2024-07-30 15:09:41 -03:00 committed by Paul Gauthier (aider)
parent 07780326b4
commit 9c406cd176

View file

@ -227,14 +227,10 @@ class Commands:
if not fnames:
fnames = self.coder.get_inchat_relative_files()
dump(fnames)
# If still no files, get all dirty files in the repo
if not fnames and self.coder.repo:
fnames = [item.a_path for item in self.coder.repo.repo.index.diff(None)]
dump(fnames)
if not fnames:
self.io.tool_error("No dirty files to lint.")
return