1
0
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:
deadc0de6
2023-05-04 22:13:48 +02:00
committed by deadc0de
parent 5b8d551d14
commit 8df4ed56db

29
CONTRIBUTING.md vendored
View File

@@ -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