gitignore: only ignore *local*.conf" under mkosi.default.d/

The pattern was added in 6242cda99d, with the
idea that users will have local configuration files for mkosi and git should
not bother them about those. But let's make this narrower, and only match
files with "local". This way we reduce the risk that some unrelated file
will be ignored by accident.

.gitignore in the parent directory is used, because mkosi apparently tries
to load all files under mkosi.default.d/, without looking at the extension.
This is probably something to fix in mkosi too.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-09-02 14:33:55 +02:00
parent 068d133881
commit 6ad92aaf90

4
.gitignore vendored
View File

@ -36,6 +36,6 @@ __pycache__/
/mkosi.builddir/
/mkosi.output/
/mkosi.default
mkosi.default.d/*
!mkosi.default.d/10-systemd.conf
# Ignore any mkosi config files with "local" in the name
/mkosi.default.d/*local*.conf
/tags