mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 16:49:42 +00:00
ignore pattern doc
This commit is contained in:
29
CONTRIBUTING.md
vendored
29
CONTRIBUTING.md
vendored
@@ -7,6 +7,7 @@ Contents
|
|||||||
* [Precedence](#precedence)
|
* [Precedence](#precedence)
|
||||||
* [Variable resolution](#variable-resolution)
|
* [Variable resolution](#variable-resolution)
|
||||||
* [Rules](#rules)
|
* [Rules](#rules)
|
||||||
|
* [Ignore pattern](#ignore-pattern)
|
||||||
* [Testing](#testing)
|
* [Testing](#testing)
|
||||||
* [Testing with unittest](#testing-with-unittest)
|
* [Testing with unittest](#testing-with-unittest)
|
||||||
* [Testing with bash scripts](#testing-with-bash-scripts)
|
* [Testing with bash scripts](#testing-with-bash-scripts)
|
||||||
@@ -158,6 +159,34 @@ dynvariables:
|
|||||||
dvar0: "echo {{@@ var0 @@}}"
|
dvar0: "echo {{@@ var0 @@}}"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Ignore pattern
|
||||||
|
|
||||||
|
**compare**
|
||||||
|
|
||||||
|
* for files, match with ignore directly
|
||||||
|
* uses `filecmp.dircmp` to compare directories
|
||||||
|
* will then match each file that is different
|
||||||
|
within the directory against the ignore patterns
|
||||||
|
before printing
|
||||||
|
|
||||||
|
**import**
|
||||||
|
|
||||||
|
* for files, match with ignore directly
|
||||||
|
* uses `shutil.copytree` with a callback
|
||||||
|
that will match each path against the ignore pattern
|
||||||
|
|
||||||
|
**install**
|
||||||
|
|
||||||
|
* recursively process each files and
|
||||||
|
match against the ignore pattern
|
||||||
|
|
||||||
|
**update**
|
||||||
|
|
||||||
|
* for files, match with ignore directly
|
||||||
|
* uses `filecmp.dircmp` to compare directories
|
||||||
|
* will then match each file that is different
|
||||||
|
within the directory against the ignore patterns
|
||||||
|
before printing
|
||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user