Skip to content

Commit

Permalink
docs: Add example of using .aiderignore to focus on specific director…
Browse files Browse the repository at this point in the history
…ies in monorepo
  • Loading branch information
paul-gauthier committed Nov 18, 2024
1 parent 8adf422 commit 4bd7bce
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions aider/website/docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <filename>` to name a specific file
to use for ignore patterns.
Expand Down

0 comments on commit 4bd7bce

Please sign in to comment.