mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
feat: add gitignore support to FileWatcher initialization
This commit is contained in:
parent
0fedecff58
commit
52a467806a
1 changed files with 5 additions and 0 deletions
|
@ -794,6 +794,11 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
if return_coder:
|
||||
return coder
|
||||
|
||||
# ai if git_root, use gitignore
|
||||
gitignore = [str(Path(root) / ".gitignore")]
|
||||
# ai pass coder.root to FW!
|
||||
self.file_watcher = FileWatcher(root, encoding=self.encoding, gitignores=gitignore)
|
||||
|
||||
coder.show_announcements()
|
||||
|
||||
if args.show_prompts:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue