1
0
Fork 0
mirror of synced 2024-11-24 17:15:34 -05:00

Add note about exclude path interpretation

See https://github.com/anishathalye/dotbot/issues/292.
This commit is contained in:
Anish Athalye 2023-07-09 15:37:42 -04:00
parent 4daa065dc9
commit 9f8fd76f32

View file

@ -201,6 +201,8 @@ When `glob: True`, Dotbot uses [glob.glob](https://docs.python.org/3/library/glo
However, due to the design of `glob.glob`, using a glob pattern such as `config/*`, will **not** match items that begin with `.`. To specifically capture items that being with `.`, you will need to include the `.` in the pattern, like this: `config/.*`.
When using glob with the `exclude:` option, the paths in the exclude paths should be relative to the base directory, same as the glob pattern itself. For example, if a glob pattern `vim/*` matches directories `vim/autoload`, `vim/ftdetect`, `vim/ftplugin`, and `vim/spell`, and you want to ignore the spell directory, then you should use `exclude: ["vim/spell"]` (not just `"spell"`).
#### Example
```yaml