使用版本 2.51.2 (ocaml 4.04.0)。
尝试排除根目录下的文件夹(称为 build),但在其下方的任何深度包含任何以 .err 和 .out 结尾的文件。
结构看起来像
build/a/b/c/test/1.0/test.out
build/a/d/whatever/2.0/whatever.err
build/a/test.err
我试过了
ignore = Path build
ignorenot = Regex·arnold-build\/(.*).(err|out)⬎
...这会产生“格式错误的模式”错误。还尝试使用此显式同步整个子目录:
ignorenot = Path a/b/c/test/
但是“测试”文件夹仍然不同步。
如何让所有 .err/.out 文件同步,而忽略其他所有内容?