Skip to content

Commit

Permalink
precedence doc for #443
Browse files Browse the repository at this point in the history
  • Loading branch information
deadc0de6 committed Nov 9, 2024
1 parent 7fc617e commit 452271b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion docs/config/config-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`).
Expand Down Expand Up @@ -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)),

0 comments on commit 452271b

Please sign in to comment.