mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
refactor: make FileWatcher initialization conditional on --watch-files flag
This commit is contained in:
parent
260806053b
commit
90339f9741
1 changed files with 2 additions and 0 deletions
|
@ -820,6 +820,8 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
ignores.append(str(Path(git_root) / ".gitignore"))
|
||||
if args.aiderignore:
|
||||
ignores.append(args.aiderignore)
|
||||
|
||||
# only if --watch-files ai!
|
||||
FileWatcher(coder, gitignores=ignores, verbose=args.verbose)
|
||||
|
||||
coder.show_announcements()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue