From 4bd7bce232cd4d507672c2ead348c4d91f5d9bfe Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 18 Nov 2024 13:22:55 -0800 Subject: [PATCH] docs: Add example of using .aiderignore to focus on specific directories in monorepo --- aider/website/docs/faq.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/aider/website/docs/faq.md b/aider/website/docs/faq.md index 9c14e5f21..868af6b19 100644 --- a/aider/website/docs/faq.md +++ b/aider/website/docs/faq.md @@ -60,6 +60,23 @@ directory you start in. You can also create a `.aiderignore` file to tell aider to ignore parts of the repo that aren't relevant to your task. This file conforms to `.gitignore` syntax and conventions. +For example, to focus only on specific directories in a monorepo, +you could create a `.aiderignore` file with: + +``` +# Ignore everything +/* + +# Allow specific directories and their contents +!foo/ +!bar/ +!baz/ + +# Allow nested files under these directories +!foo/** +!bar/** +!baz/** +``` You can use `--aiderignore ` to name a specific file to use for ignore patterns.