mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
feat: Add text editor temp files to gitignore
This commit is contained in:
parent
2b7ee271df
commit
3fcbf1a43f
1 changed files with 1 additions and 0 deletions
|
@ -70,6 +70,7 @@ def load_gitignores(gitignore_paths: list[Path]) -> Optional[PathSpec]:
|
||||||
if not gitignore_paths:
|
if not gitignore_paths:
|
||||||
return None
|
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
|
patterns = [".aider*", ".git"] # Always ignore
|
||||||
for path in gitignore_paths:
|
for path in gitignore_paths:
|
||||||
if path.exists():
|
if path.exists():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue