allows wildcards and pattern ignores for specific files

This commit is contained in:
Dylan Marcus 2024-11-15 14:58:27 -05:00
parent 1cf311bcf9
commit 4642e3fd09
2 changed files with 32 additions and 2 deletions

View file

@ -116,6 +116,22 @@ You can copy this file from the [existing example in the project](https://github
Using these settings, you can control which files and directories are included or excluded from the final text file.
### Wildcards and Inclusions
Using Wildcard Patterns
- `*.ext`: Matches any file ending with .ext in any directory.
- `dir/*.ext`: Matches files ending with .ext in the specified directory dir/.
- `**/*.ext`: Matches files ending with .ext in any subdirectory (recursive).
If you want to include certain files that would otherwise be ignored, use the ! pattern:
```yaml
ignore-tree-and-content:
- "*.txt"
- "!README.txt"
```
## gitignore Rule to Ignore generated files
To ignore the generated text files, add the following lines to your `.gitignore` file: