Refactor get_tracked_files method to be called on self.coder.repo instead of self.coder.

This commit is contained in:
Paul Gauthier 2023-07-21 14:28:06 -03:00
parent a789de9433
commit 4a8add1b5d

View file

@ -240,7 +240,7 @@ class Commands:
# if repo, filter against it # if repo, filter against it
if self.coder.repo: 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] matched_files = [fn for fn in matched_files if str(fn) in git_files]
res = list(map(str, matched_files)) res = list(map(str, matched_files))
@ -251,7 +251,7 @@ class Commands:
added_fnames = [] added_fnames = []
git_added = [] 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() all_matched_files = set()
for word in args.split(): for word in args.split():