mirror of
https://github.com/opdavies/build-configs.git
synced 2025-02-08 16:15:03 +00:00
git: allow for creating inclusive gitignore files
This commit is contained in:
parent
e3362270f4
commit
30942b2d95
|
@ -116,6 +116,10 @@ final class ConfigDto
|
||||||
new Assert\Type('bool'),
|
new Assert\Type('bool'),
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
'createInclusiveGitIgnoreFile' => new Assert\Optional([
|
||||||
|
new Assert\Type('bool'),
|
||||||
|
]),
|
||||||
|
|
||||||
'createTmuxStartupFile' => new Assert\Optional([
|
'createTmuxStartupFile' => new Assert\Optional([
|
||||||
new Assert\Type('bool'),
|
new Assert\Type('bool'),
|
||||||
]),
|
]),
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# {{ managedText|raw }}
|
# {{ managedText|raw }}
|
||||||
|
|
||||||
|
{% if not experimental.createInclusiveGitIgnoreFile %}
|
||||||
.editorconfig
|
.editorconfig
|
||||||
.env
|
.env
|
||||||
.gitattributes
|
.gitattributes
|
||||||
|
@ -44,7 +45,19 @@ docker-compose.override.yaml
|
||||||
{% if flake is defined %}
|
{% if flake is defined %}
|
||||||
.dir-env/
|
.dir-env/
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
# Ignore everything.
|
||||||
|
*
|
||||||
|
|
||||||
{% for path in git.ignore %}
|
# Include these things:
|
||||||
|
!/{{ drupal.docroot }}/*/custom/**
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% for path in git.ignore|sort %}
|
||||||
{{ path }}
|
{{ path }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
{% if experimental.createInclusiveGitIgnoreFile %}
|
||||||
|
# Even if they are in sub-directories.
|
||||||
|
!*/
|
||||||
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue