feat: Add text editor temp files to gitignore

This commit is contained in:
Paul Gauthier 2024-12-11 20:28:02 -08:00 committed by Paul Gauthier (aider)
parent 2b7ee271df
commit 3fcbf1a43f

View file

@ -70,6 +70,7 @@ def load_gitignores(gitignore_paths: list[Path]) -> Optional[PathSpec]:
if not gitignore_paths:
return None
# expand this set of patterns to include all manner of text editor temp files like .bak, ...~, etc ai!
patterns = [".aider*", ".git"] # Always ignore
for path in gitignore_paths:
if path.exists():