From 3fcbf1a43f3af4aa914a50a574eb9f900845582c Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 11 Dec 2024 20:28:02 -0800 Subject: [PATCH] feat: Add text editor temp files to gitignore --- aider/watch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aider/watch.py b/aider/watch.py index 2b21fe425..2b35384d6 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -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():