1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 09:51:45 +00:00

precedence doc for #443

This commit is contained in:
deadc0de6
2024-11-06 23:25:18 +01:00
committed by deadc0de
parent 7fc617e1df
commit 452271bcae
2 changed files with 9 additions and 1 deletions

4
CONTRIBUTING.md vendored
View File

@@ -103,6 +103,10 @@ levels in not accurate anymore.
* Profile `(dyn)variables` > profile's included `(dyn)variables`
* Imported `variables`/`dynvariables` > `(dyn)variables`
When `import_configs` importing config's elements except the `(dyn)variables`
will take precedence in case of name clash
(see <https://github.com/deadc0de6/dotdrop/issues/443>).
## Variable resolution
How variables are resolved (through Jinja2's

View File

@@ -187,6 +187,10 @@ import_configs:
- other-config.yaml:optional
```
In case of a name clash (same name in importing and imported configs),
the importing config will take precedence except for the `variables` and `dynvariables`
(see [variable](config-file.md#variables) and [CONTRIBUTING doc](/CONTRIBUTING.md)).
## default_actions entry
Dotdrop allows to execute an action for any dotfile installation. These actions work as any other action (`pre` or `post`).
@@ -223,4 +227,4 @@ Note:
* directories will **not** be backed up, only files
* when using a different `link` value than `nolink` with directories,
the files under the directory will **not** be backed up
(See [Symlinking dotfiles](config-file.md#symlinking-dotfiles)),
(See [Symlinking dotfiles](config-file.md#symlinking-dotfiles)),