mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
feat: Enhance gitignore prompt with option to skip check
This commit is contained in:
parent
7a9edae227
commit
5e44d18d54
1 changed files with 4 additions and 2 deletions
|
@ -187,7 +187,9 @@ def check_gitignore(git_root, io, ask=True):
|
|||
if not patterns_to_add:
|
||||
return
|
||||
|
||||
if ask and not io.confirm_ask(f"Add {', '.join(patterns_to_add)} to .gitignore (recommended)?"):
|
||||
if ask:
|
||||
io.tool_output("You can skip this check with --no-gitignore")
|
||||
if not io.confirm_ask(f"Add {', '.join(patterns_to_add)} to .gitignore (recommended)?"):
|
||||
return
|
||||
|
||||
if content and not content.endswith("\n"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue