mirror of
https://github.com/Aider-AI/aider
synced 2026-05-13 10:26:53 +02:00
# Context:
USER: instead of adding all the files to the repo, add all the files except those with `test` in the filename
ASSISTANT: To exclude files with `test` in the filename, you can modify the `create_temp_repo` function in the `scripts/benchmark.py` file. Here's the updated code:
```python
scripts/benchmark.py
<<<<<<< ORIGINAL
# Add all copied files to the repo
repo.git.add(A=True)
=======
# Add all copied files to the repo, excluding those with 'test' in the filename
for item in os.listdir(tempdir):
if "test" not in item:
repo.git.add(item)
>>>>>>> UPDATED
```
This change will add files to the repository one by one, excluding those with `test` in the filename.