mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
Add dirty tracked files to the list of files to lint
This commit is contained in:
parent
4a3ea08b49
commit
5f9275a3c2
1 changed files with 9 additions and 4 deletions
|
@ -227,14 +227,19 @@ class Commands:
|
||||||
if not fnames:
|
if not fnames:
|
||||||
fnames = self.coder.get_inchat_relative_files()
|
fnames = self.coder.get_inchat_relative_files()
|
||||||
|
|
||||||
|
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 = [
|
[
|
||||||
self.coder.get_rel_fname(f)
|
fn
|
||||||
for f in self.coder.repo.get_tracked_files()
|
for fn in tracked_files
|
||||||
if self.coder.repo.is_dirty(f)
|
if self.coder.repo.is_dirty(fn)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
dump(fnames)
|
||||||
|
|
||||||
if not fnames:
|
if not fnames:
|
||||||
self.io.tool_error("No dirty files to lint.")
|
self.io.tool_error("No dirty files to lint.")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue