feat: Enhance gitignore prompt with option to skip check

This commit is contained in:
Paul Gauthier 2025-02-03 19:02:51 -08:00 committed by Paul Gauthier (aider)
parent 7a9edae227
commit 5e44d18d54

View file

@ -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"):