mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 18:54:59 +00:00
Get all dirty files in the repo if no files are specified
This commit is contained in:
parent
958b608467
commit
f62e5bd883
1 changed files with 7 additions and 1 deletions
|
@ -227,7 +227,13 @@ class Commands:
|
||||||
if not fnames:
|
if not fnames:
|
||||||
fnames = self.coder.get_inchat_relative_files()
|
fnames = self.coder.get_inchat_relative_files()
|
||||||
|
|
||||||
# todo: if not fnames: get all the dirty files in the repo
|
# If still no files, get all dirty files in the repo
|
||||||
|
if not fnames and self.coder.repo:
|
||||||
|
fnames = [
|
||||||
|
self.coder.get_rel_fname(f)
|
||||||
|
for f in self.coder.repo.get_tracked_files()
|
||||||
|
if self.coder.repo.is_dirty(f)
|
||||||
|
]
|
||||||
|
|
||||||
if not fnames:
|
if not fnames:
|
||||||
self.io.tool_error("No dirty files to lint.")
|
self.io.tool_error("No dirty files to lint.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue