问题
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