]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
gitignore: only ignore *local*.conf" under mkosi.default.d/
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 2 Sep 2021 12:33:55 +0000 (14:33 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 3 Sep 2021 11:15:52 +0000 (13:15 +0200)
The pattern was added in 6242cda99d9194efec20997697d703c0c005dbd4, 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.

.gitignore

index d6f6caca55e8b4b23b65bbb81dd61468d238d9b9..cc7d3aa41edd634ff0cafb4506d1cd147d83699c 100644 (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