Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable overriding inheritance per-pattern #6

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Enable overriding inheritance per-pattern #6

wants to merge 6 commits into from

Conversation

bryce-gilhome
Copy link

This PR adds a config option dataInheritance.default (bool) which describes the default inheritance behaviour (if the plugin is enabled) - i.e. by default, either inherit lineage pattern data or not - and a 'data-inheritance' key (bool) that can be set in pattern data to override that default.

e.g. if dataInheritance.default is false, and pattern 'foobar' has data 'data-inheritance: true', then any pattern including foobar will use the inherited data. Likewise if the default is true, all included patterns will use inherited data, unless their data contains 'data-inheritance: false'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant