mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
feat: add aiderignore support to FileWatcher initialization
This commit is contained in:
parent
0d4f9f00ee
commit
4b51bb2334
1 changed files with 4 additions and 3 deletions
|
@ -796,9 +796,10 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
|
||||
ignores = []
|
||||
if git_root:
|
||||
ignores += [str(Path(git_root) / ".gitignore")]
|
||||
# ai: add aiderignores too!
|
||||
io.file_watcher = FileWatcher(coder, encoding=self.encoding, gitignores=gitignore)
|
||||
ignores.append(str(Path(git_root) / ".gitignore"))
|
||||
if args.aiderignore:
|
||||
ignores.append(str(Path(git_root) / args.aiderignore))
|
||||
io.file_watcher = FileWatcher(coder.root, encoding=io.encoding, gitignores=ignores)
|
||||
|
||||
coder.show_announcements()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue