Recursive Pattern match in .tpattributes file [TFS 2010]

一世执手 提交于 2019-12-11 09:19:31

问题


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:


.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.



来源:https://stackoverflow.com/questions/25557718/recursive-pattern-match-in-tpattributes-file-tfs-2010

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!