1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-03-23 13:35:07 +00:00

support */dir1 pattern on ignore

This commit is contained in:
deadc0de6
2023-12-28 06:12:13 +01:00
committed by deadc0de
parent 3e4ac7e6a2
commit af694e6835
4 changed files with 29 additions and 13 deletions

8
CONTRIBUTING.md vendored
View File

@@ -161,6 +161,14 @@ dynvariables:
## Ignore pattern
Officially only `*/file` and `*/dir/*` should be used for ignore pattern.
However we still recursively process each path components to ensure
that pattern like `*/dir` are matched (see `_match_ignore_pattern`
in `utils.py`).
We also append a separator to directory before checking
for a match with the ignore patterns.
**compare**
* for files, match with ignore directly