mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
commit new files to git
This commit is contained in:
parent
6a0cff50f8
commit
75b533b4c3
2 changed files with 24 additions and 23 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue