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 = []
|
ignores = []
|
||||||
if git_root:
|
if git_root:
|
||||||
ignores += [str(Path(git_root) / ".gitignore")]
|
ignores.append(str(Path(git_root) / ".gitignore"))
|
||||||
# ai: add aiderignores too!
|
if args.aiderignore:
|
||||||
io.file_watcher = FileWatcher(coder, encoding=self.encoding, gitignores=gitignore)
|
ignores.append(str(Path(git_root) / args.aiderignore))
|
||||||
|
io.file_watcher = FileWatcher(coder.root, encoding=io.encoding, gitignores=ignores)
|
||||||
|
|
||||||
coder.show_announcements()
|
coder.show_announcements()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue