Recursive Pattern match in .tpattributes file [TFS

2019-08-08 06:35发布

I'm trying to use a .tpattributes file to retain Execute permissions on all files under a directory in my project. However, it appears the attribute is only applied to the top level folder, and I can't find a way to make it recursive.

Attempt 1:

#Trying to prevent TFS from screwing up files like it loves to do
.**\/*:x

Attempt 2:

#Trying to prevent TFS from screwing up files like it loves to do
.*/*:x

The documentation here isn't very helpful, and I haven't been able to find any other documentation for .tpattributes files.

1条回答
Bombasti
2楼-- · 2019-08-08 06:59

.tpattributes are not recursive. (In fact, they cannot be, since you can have advanced workspace mappings.) You will need a .tpattributes in each folder.

Executable permissions are handled automatically, without the need for .tpattributes in TFS 2013 and newer.

查看更多
登录 后发表回答