Merge pull request #16 from himwho/main

allows wildcards and pattern ignores for specific files
This commit is contained in:
Kirill Markin 2024-12-16 00:53:26 +01:00 committed by GitHub
commit 6a434e5174
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 32 additions and 2 deletions

View file

@ -142,6 +142,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: