feat: add .aider* to default gitignore patterns

This commit is contained in:
Paul Gauthier (aider) 2024-11-27 17:28:39 -08:00
parent c1a7784781
commit 920917a47e

View file

@ -53,8 +53,7 @@ def load_gitignores(gitignore_paths: list[Path]) -> Optional[PathSpec]:
if not gitignore_paths:
return None
#ai add in .aider* to always be ignored too!
patterns = []
patterns = [".aider*"] # Always ignore .aider* files
for path in gitignore_paths:
if path.exists():
with open(path) as f: