mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 06:44:59 +00:00
Refactor get_tracked_files
method to be called on self.coder.repo
instead of self.coder
.
This commit is contained in:
parent
a789de9433
commit
4a8add1b5d
1 changed files with 2 additions and 2 deletions
|
@ -240,7 +240,7 @@ class Commands:
|
|||
|
||||
# if repo, filter against it
|
||||
if self.coder.repo:
|
||||
git_files = self.coder.get_tracked_files()
|
||||
git_files = self.coder.repo.get_tracked_files()
|
||||
matched_files = [fn for fn in matched_files if str(fn) in git_files]
|
||||
|
||||
res = list(map(str, matched_files))
|
||||
|
@ -251,7 +251,7 @@ class Commands:
|
|||
|
||||
added_fnames = []
|
||||
git_added = []
|
||||
git_files = self.coder.get_tracked_files() if self.coder.repo else []
|
||||
git_files = self.coder.repo.get_tracked_files() if self.coder.repo else []
|
||||
|
||||
all_matched_files = set()
|
||||
for word in args.split():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue