From 4a8add1b5d1ec8bc6e63fa200e0a524261105bc1 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 21 Jul 2023 14:28:06 -0300 Subject: [PATCH] Refactor `get_tracked_files` method to be called on `self.coder.repo` instead of `self.coder`. --- aider/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index 960d94e46..22806fb7b 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -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():