commit new files to git

This commit is contained in:
Paul Gauthier 2023-07-07 08:24:44 -07:00
parent 6a0cff50f8
commit 75b533b4c3
2 changed files with 24 additions and 23 deletions

View file

@ -954,6 +954,8 @@ class Coder:
return full_path
def get_tracked_files(self):
if not self.repo:
return []
# convert to appropriate os.sep, since git always normalizes to /
files = set(self.repo.git.ls_files().splitlines())
res = set(str(Path(PurePosixPath(path))) for path in files)