mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-10 14:45:00 +00:00
docs: Add comment about potential error in index.entries.keys usage
This commit is contained in:
parent
1a6f290979
commit
ad4bd91751
1 changed files with 1 additions and 0 deletions
|
@ -309,6 +309,7 @@ class GitRepo:
|
||||||
|
|
||||||
# Add staged files
|
# Add staged files
|
||||||
index = self.repo.index
|
index = self.repo.index
|
||||||
|
# index.entries.keys can throw ANY_GIT_ERROR ai!
|
||||||
staged_files = [path for path, _ in index.entries.keys()]
|
staged_files = [path for path, _ in index.entries.keys()]
|
||||||
files.update(self.normalize_path(path) for path in staged_files)
|
files.update(self.normalize_path(path) for path in staged_files)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue