]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1196: filetype: config files for container tools are not recognized v9.1.1196
authorDavid Mandelberg <david@mandelberg.org>
Wed, 12 Mar 2025 20:23:39 +0000 (21:23 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 12 Mar 2025 20:23:39 +0000 (21:23 +0100)
commit7546afbf525861f586ea2deabf71e3a2940abd4d
tree60ffe054e96b41951d6359d4b5646f05a23210d8
parentc1c3b5d6a0a3032057bf6de8672cc79100bb73c9
patch 9.1.1196: filetype: config files for container tools are not recognized

Problem:  filetype: config files for container tools are not recognized
Solution: detect the ones that aren't detected yet as toml filetype
          (David Mandelberg)

The .containerignore format doesn't look exactly the same as gitignore,
but very close. And .dockerignore is already using gitignore.

References:
https://github.com/containers/common/blob/main/docs/containerignore.5.md
https://github.com/containers/common/blob/main/docs/containers.conf.5.md
https://github.com/containers/storage/blob/main/docs/containers-storage.conf.5.md
https://github.com/containers/image/blob/main/docs/containers-registries.conf.5.md
https://github.com/containers/image/blob/main/docs/containers-registries.conf.d.5.md

I wasn't sure exactly how to interpret what containers.conf(5) was
saying about modules, so I looked at
https://github.com/containers/common/tree/main/pkg/config/testdata/modules
to get examples, and based the detection off those.

closes: #16852

Signed-off-by: David Mandelberg <david@mandelberg.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c