GitHub 语言学家是否支持语言学家供应商的前缀通配符?

Does GitHub Linguist support prefix wildcards for linguist-vendored?

在 GitHub 关于 linguist 的文档中,关于使用 .gitattributes 文件的 section 说路径可以标记为供应商,因此在存储库的统计跟踪,具有:

special-vendored-path/* linguist-vendored

但是,是否可以让语言学家将目录标记为已出售,这些目录可能嵌套在包含非出售代码的目录中?

我尝试在 .gitattributes 中添加样式为 */special-vendored-path/* linguist-vendored 的行,但这并没有导致 GitHub 代码比例信息发生变化。

要匹配任意树状目录中的目录,您需要双星号:

**/special-vendored-path/* linguist-vendored

但是请注意,路径末尾不需要双星号。例如,test1/* 将匹配 test1/test2/test3/file.