From 5e44d18d548cfdbc8d21de0825e8023a1d8506ce Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 3 Feb 2025 19:02:51 -0800 Subject: [PATCH] feat: Enhance gitignore prompt with option to skip check --- aider/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aider/main.py b/aider/main.py index c9a9b8f64..00e303579 100644 --- a/aider/main.py +++ b/aider/main.py @@ -187,8 +187,10 @@ 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)?"): - return + 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"): content += "\n"